Commit 82d9610c authored by webchick's avatar webchick
Browse files

Issue #2314765 by Crell: Standardize filter format route names.

parent a115d7cc
filter.format_edit_tab: entity.filter_format.edit_form_tab:
route_name: filter.format_edit route_name: entity.filter_format.edit_form
title: 'Configure' title: 'Configure'
base_route: filter.format_edit base_route: entity.filter_format.edit_form
weight: -10 weight: -10
filter.admin_overview: filter.admin_overview:
......
...@@ -48,7 +48,7 @@ function filter_help($route_name, RouteMatchInterface $route_match) { ...@@ -48,7 +48,7 @@ function filter_help($route_name, RouteMatchInterface $route_match) {
$output .= '<p>' . t('Text formats are presented on content editing pages in the order defined on this page. The first format available to a user will be selected by default.') . '</p>'; $output .= '<p>' . t('Text formats are presented on content editing pages in the order defined on this page. The first format available to a user will be selected by default.') . '</p>';
return $output; return $output;
case 'filter.format_edit': case 'entity.filter_format.edit_form':
$output = '<p>' . t('A text format contains filters that change the user input, for example stripping out malicious HTML or making URLs clickable. Filters are executed from top to bottom and the order is important, since one filter may prevent another filter from doing its job. For example, when URLs are converted into links before disallowed HTML tags are removed, all links may be removed. When this happens, the order of filters may need to be re-arranged.') . '</p>'; $output = '<p>' . t('A text format contains filters that change the user input, for example stripping out malicious HTML or making URLs clickable. Filters are executed from top to bottom and the order is important, since one filter may prevent another filter from doing its job. For example, when URLs are converted into links before disallowed HTML tags are removed, all links may be removed. When this happens, the order of filters may need to be re-arranged.') . '</p>';
return $output; return $output;
} }
......
...@@ -31,7 +31,7 @@ filter.format_add: ...@@ -31,7 +31,7 @@ filter.format_add:
requirements: requirements:
_entity_create_access: 'filter_format' _entity_create_access: 'filter_format'
filter.format_edit: entity.filter_format.edit_form:
path: '/admin/config/content/formats/manage/{filter_format}' path: '/admin/config/content/formats/manage/{filter_format}'
defaults: defaults:
_entity_form: filter_format.edit _entity_form: filter_format.edit
...@@ -39,7 +39,7 @@ filter.format_edit: ...@@ -39,7 +39,7 @@ filter.format_edit:
requirements: requirements:
_entity_access: 'filter_format.update' _entity_access: 'filter_format.update'
filter.admin_disable: entity.filter_format.disable:
path: '/admin/config/content/formats/manage/{filter_format}/disable' path: '/admin/config/content/formats/manage/{filter_format}/disable'
defaults: defaults:
_entity_form: 'filter_format.disable' _entity_form: 'filter_format.disable'
......
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
* "status" = "status" * "status" = "status"
* }, * },
* links = { * links = {
* "edit-form" = "filter.format_edit", * "edit-form" = "entity.filter_format.edit_form",
* "disable" = "filter.admin_disable" * "disable" = "entity.filter_format.disable"
* } * }
* ) * )
*/ */
......
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