Replace string usage by array on paths and routes

Created on 8 March 2023, over 1 year ago
Updated 27 June 2023, about 1 year ago

Problem/Motivation

Nowadays, paths and routes on Hidden Language exception manager are divided by comma (,), in which makes harder to:

  • Manage configuration changes during export
  • Add or remove items from paths and/or routes through UI

Besides that, would be desirable to:

  • Accepts wildcard (*) on paths
  • Uses the HiddenLanguageManager service on EventSubscriber, in order to centralize the Hidden Language exception rule

Steps to reproduce

  • Logged as administrative user, goes to admin/config/system/hidden_language
  • Fill out the routes and paths desired to be an exception of Hidden Language system
  • Export the configuration

Proposed resolution

  • Use break line as divider of routes and paths textarea
  • Export routes and paths as array on configuration
  • Adds wildcard (*) on paths
  • Refactor the EventSubscriber logic using early return and HiddenLanguageManager service

Remaining tasks

Implement

User interface changes

Route and patch field description

API changes

None

Data model changes

None

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡·Brazil brunapimenta

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024