0
example:
  path: '/example'
  defaults:
    _controller: '\Drupal\example\Controller\ExampleController::content'
  requirements:
    _custom_access: '\Drupal\example\Controller\ExampleController::access'

This custom_access checker will be executed only when someone call mywebsite.domain/example.

But I want that this controller check all urls, run independent of path.

How can I create an independent custom access controller?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.