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: ...@@ -22,7 +22,7 @@ search.add_type:
requirements: requirements:
_entity_create_access: 'search_page' _entity_create_access: 'search_page'
search.edit: entity.search_page.edit_form:
path: '/admin/config/search/pages/manage/{search_page}' path: '/admin/config/search/pages/manage/{search_page}'
defaults: defaults:
_entity_form: 'search_page.edit' _entity_form: 'search_page.edit'
...@@ -30,7 +30,7 @@ search.edit: ...@@ -30,7 +30,7 @@ search.edit:
requirements: requirements:
_entity_access: 'search_page.update' _entity_access: 'search_page.update'
search.enable: entity.search_page.enable:
path: '/admin/config/search/pages/manage/{search_page}/enable' path: '/admin/config/search/pages/manage/{search_page}/enable'
defaults: defaults:
_controller: '\Drupal\search\Controller\SearchController::performOperation' _controller: '\Drupal\search\Controller\SearchController::performOperation'
...@@ -38,7 +38,7 @@ search.enable: ...@@ -38,7 +38,7 @@ search.enable:
requirements: requirements:
_entity_access: 'search_page.update' _entity_access: 'search_page.update'
search.disable: entity.search_page.disable:
path: '/admin/config/search/pages/manage/{search_page}/disable' path: '/admin/config/search/pages/manage/{search_page}/disable'
defaults: defaults:
_controller: '\Drupal\search\Controller\SearchController::performOperation' _controller: '\Drupal\search\Controller\SearchController::performOperation'
...@@ -46,14 +46,14 @@ search.disable: ...@@ -46,14 +46,14 @@ search.disable:
requirements: requirements:
_entity_access: 'search_page.disable' _entity_access: 'search_page.disable'
search.set_default: entity.search_page.set_default:
path: '/admin/config/search/pages/manage/{search_page}/set-default' path: '/admin/config/search/pages/manage/{search_page}/set-default'
defaults: defaults:
_controller: '\Drupal\search\Controller\SearchController::setAsDefault' _controller: '\Drupal\search\Controller\SearchController::setAsDefault'
requirements: requirements:
_entity_access: 'search_page.update' _entity_access: 'search_page.update'
search.delete: entity.search_page.delete_form:
path: '/admin/config/search/pages/manage/{search_page}/delete' path: '/admin/config/search/pages/manage/{search_page}/delete'
defaults: defaults:
_entity_form: 'search_page.delete' _entity_form: 'search_page.delete'
......
...@@ -35,11 +35,11 @@ ...@@ -35,11 +35,11 @@
* }, * },
* admin_permission = "administer search", * admin_permission = "administer search",
* links = { * links = {
* "edit-form" = "search.edit", * "edit-form" = "entity.search_page.edit_form",
* "delete-form" = "search.delete", * "delete-form" = "entity.search_page.delete_form",
* "enable" = "search.enable", * "enable" = "entity.search_page.enable",
* "disable" = "search.disable", * "disable" = "entity.search_page.disable",
* "set-default" = "search.set_default" * "set-default" = "entity.search_page.set_default"
* }, * },
* config_prefix = "page", * config_prefix = "page",
* entity_keys = { * entity_keys = {
......
...@@ -305,7 +305,7 @@ public function getDefaultOperations(EntityInterface $entity) { ...@@ -305,7 +305,7 @@ public function getDefaultOperations(EntityInterface $entity) {
else { else {
$operations['default'] = array( $operations['default'] = array(
'title' => $this->t('Set as default'), 'title' => $this->t('Set as default'),
'route_name' => 'search.set_default', 'route_name' => 'entity.search_page.set_default',
'route_parameters' => array( 'route_parameters' => array(
'search_page' => $entity->id(), '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