field_permission_example.routing.yml

Same filename in other branches
  1. 3.x modules/field_permission_example/field_permission_example.routing.yml
  2. 4.0.x modules/field_permission_example/field_permission_example.routing.yml
field_permission_example/field_permission_example.routing.yml
1 string reference to YAML keys in field_permission_example.routing.yml
_examples_toolbar_routes in ./examples.module
Get a list of toolbar links to provide.

File

field_permission_example/field_permission_example.routing.yml

View source
  1. field_permission_example.description:
  2. path: '/examples/field-permission-example'
  3. defaults:
  4. _title: 'Field Permission Example'
  5. _controller: '\Drupal\field_permission_example\Controller\FieldPermissionExampleController::description'
  6. requirements:
  7. _permission: 'access content'