entity_reference_tree-8.x-1.x-dev/entity_reference_tree.routing.yml
entity_reference_tree.routing.yml
entity_reference_tree.widget_form:
path: '/admin/entity_reference_tree/search/{field_edit_id}/{bundle}/{entity_type}/{theme}/{dots}/{dialog_title}'
defaults:
_title: 'Entity Reference Search'
_controller: '\Drupal\entity_reference_tree\Controller\EntityReferenceTreeController::openSearchForm'
requirements:
# The search form is widly open to everyone as it just an entry for search.
_access: 'TRUE'
options:
_admin_route: TRUE
entity_reference_tree.json:
path: '/admin/entity_reference_tree/json/{entity_type}/{bundles}'
defaults:
_title: 'Entity Reference Search'
_controller: '\Drupal\entity_reference_tree\Controller\EntityReferenceTreeController::treeJson'
requirements:
# The access token and permission to the entity tree will be checked in the treeJson()
# according to the entity type and bundles.
_access: 'TRUE'
options:
_admin_route: TRUE
