- Issue created by @jansete
- Status changed to Needs review
over 1 year ago 12:19pm 9 June 2023 - last update
over 1 year ago 5 pass
Add new custom propertie to routing requirements to allow o disallow route access easily using feature toggles.
None.
Create access check "_feature_toggle" that verify routing access using feature status service getting by parameter, feature status name.
Example:
my_module.my_route:
path: '/my-path'
defaults:
_controller: '\Drupal\my_module\Controller\MyModuleController::index'
requirements:
_permission: 'access content'
_feature_toggle: 'my_toggle'
Add the patch.
None.
None.
None.
Needs review
2.0
Code