You are here

entity_reference_tree.routing.yml in Entity Reference Tree Widget 2.x

Same filename and directory in other branches
  1. 8 entity_reference_tree.routing.yml

File

entity_reference_tree.routing.yml
View source
  1. entity_reference_tree.widget_form:
  2. path: '/admin/entity_reference_tree/search/{field_edit_id}/{bundle}/{entity_type}/{theme}/{dots}/{dialog_title}'
  3. defaults:
  4. _title: 'Entity Reference Search'
  5. _controller: '\Drupal\entity_reference_tree\Controller\EntityReferenceTreeController::openSearchForm'
  6. requirements:
  7. # The search form is widly open to everyone as it just an entry for search.
  8. _access: 'TRUE'
  9. options:
  10. _admin_route: TRUE
  11. entity_reference_tree.json:
  12. path: '/admin/entity_reference_tree/json/{entity_type}/{bundles}'
  13. defaults:
  14. _title: 'Entity Reference Search'
  15. _controller: '\Drupal\entity_reference_tree\Controller\EntityReferenceTreeController::treeJson'
  16. requirements:
  17. # The access token and permission to the entity tree will be checked in the treeJson()
  18. # according to the entity type and bundles.
  19. _access: 'TRUE'
  20. options:
  21. _admin_route: TRUE