path_file.routing.yml in Path File 8
File
path_file.routing.ymlView source
- entity.path_file_entity.canonical:
- path: '/path-file/{path_file_entity}'
- defaults:
- # Calls the view controller, defined in the annotation of the contact entity
- _controller: '\Drupal\path_file\Controller\PathFileController::file'
- _title: ''
- requirements:
- # Calls the access controller of the entity, $operation 'view'
- _entity_access: 'path_file_entity.view'