Add access check for extend routing capabilities

Created on 9 June 2023, over 1 year ago

Problem/Motivation

Add new custom propertie to routing requirements to allow o disallow route access easily using feature toggles.

Steps to reproduce

None.

Proposed resolution

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'

Remaining tasks

Add the patch.

User interface changes

None.

API changes

None.

Data model changes

None.

Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇪🇸Spain jansete

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

Comments & Activities

Production build 0.71.5 2024