Commit cc931cec authored by alexpott's avatar alexpott

Issue #2314885 by undertext, Crell: Standardize search page entity route names.

parent 46101597
......@@ -22,7 +22,7 @@ search.add_type:
requirements:
_entity_create_access: 'search_page'
search.edit:
entity.search_page.edit_form:
path: '/admin/config/search/pages/manage/{search_page}'
defaults:
_entity_form: 'search_page.edit'
......@@ -30,7 +30,7 @@ search.edit:
requirements:
_entity_access: 'search_page.update'
search.enable:
entity.search_page.enable:
path: '/admin/config/search/pages/manage/{search_page}/enable'
defaults:
_controller: '\Drupal\search\Controller\SearchController::performOperation'
......@@ -38,7 +38,7 @@ search.enable:
requirements:
_entity_access: 'search_page.update'
search.disable:
entity.search_page.disable:
path: '/admin/config/search/pages/manage/{search_page}/disable'
defaults:
_controller: '\Drupal\search\Controller\SearchController::performOperation'
......@@ -46,14 +46,14 @@ search.disable:
requirements:
_entity_access: 'search_page.disable'
search.set_default:
entity.search_page.set_default:
path: '/admin/config/search/pages/manage/{search_page}/set-default'
defaults:
_controller: '\Drupal\search\Controller\SearchController::setAsDefault'
requirements:
_entity_access: 'search_page.update'
search.delete:
entity.search_page.delete_form:
path: '/admin/config/search/pages/manage/{search_page}/delete'
defaults:
_entity_form: 'search_page.delete'
......
......@@ -35,11 +35,11 @@
* },
* admin_permission = "administer search",
* links = {
* "edit-form" = "search.edit",
* "delete-form" = "search.delete",
* "enable" = "search.enable",
* "disable" = "search.disable",
* "set-default" = "search.set_default"
* "edit-form" = "entity.search_page.edit_form",
* "delete-form" = "entity.search_page.delete_form",
* "enable" = "entity.search_page.enable",
* "disable" = "entity.search_page.disable",
* "set-default" = "entity.search_page.set_default"
* },
* config_prefix = "page",
* entity_keys = {
......
......@@ -305,7 +305,7 @@ public function getDefaultOperations(EntityInterface $entity) {
else {
$operations['default'] = array(
'title' => $this->t('Set as default'),
'route_name' => 'search.set_default',
'route_name' => 'entity.search_page.set_default',
'route_parameters' => array(
'search_page' => $entity->id(),
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment