You are here

nodeaccess.routing.yml in Nodeaccess 8

Same filename and directory in other branches
  1. 8.2 nodeaccess.routing.yml

File

nodeaccess.routing.yml
View source
  1. nodeaccess.administration:
  2. path: '/admin/config/people/nodeaccess'
  3. defaults:
  4. _form: '\Drupal\nodeaccess\Form\ConfigForm'
  5. _title: 'Nodeaccess'
  6. requirements:
  7. _permission: 'administer nodeaccess'
  8. entity.node.grants:
  9. path: '/node/{node}/grants'
  10. defaults:
  11. _form: '\Drupal\nodeaccess\Form\GrantsForm'
  12. _title: 'Grants'
  13. requirements:
  14. _custom_access: '\Drupal\nodeaccess\AccessChecks\NodeGrantAccessCheck::access'
  15. node: \d+
  16. options:
  17. _admin_route: TRUE