Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
See How to skip route if not user access.
This module provides route option "_skip_to_access" to skip route to the next if user does not access to current route.
Example route:
entity.my_entity.edit_form:
path: '/path/{my_entity}'
defaults:
_entity_form: 'my_entity.edit'
requirements:
_permission: 'administer my_entity'
options:
_skip_to_access: true
Project information
- Module categories: Access Control
- Created by devpreview on , updated