By dawehner on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
In mymodule.routing.yml a route can specify whether all access checkers should allow access ('ALL') or at least one ('ANY'), the default value is changed from ANY to ALL.
Before
block.admin_demo:
path: '/admin/structure/block/demo/{theme}'
defaults:
_controller: '\Drupal\block\Controller\BlockController::demo'
options:
_access_mode: 'ALL'
requirements:
_access_theme: 'TRUE'
_permission: 'administer blocks'
After
block.admin_demo:
path: '/admin/structure/block/demo/{theme}'
defaults:
_controller: '\Drupal\block\Controller\BlockController::demo'
requirements:
_access_theme: 'TRUE'
_permission: 'administer blocks'
Before
node.add_page:
path: '/node/add'
defaults:
_title: 'Add page'
_controller: '\Drupal\node\Controller\NodeController::addPage'
requirements:
_permission: 'administer content types'
_node_add_access: 'node'
After
node.add_page:
path: '/node/add'
defaults:
_title: 'Add page'
_controller: '\Drupal\node\Controller\NodeController::addPage'
options:
_access_mode: 'ANY'
requirements:
_permission: 'administer content types'
_node_add_access: 'node'
Impacts:
Module developers
Comments
Isn't _access_mode dropped completly?
#2431281: Drop support for _access_mode routes and always assume ALL