diff --git a/core/modules/views/src/Plugin/views/style/DefaultSummary.php b/core/modules/views/src/Plugin/views/style/DefaultSummary.php index 63cf9dc..3646e54 100644 --- a/core/modules/views/src/Plugin/views/style/DefaultSummary.php +++ b/core/modules/views/src/Plugin/views/style/DefaultSummary.php @@ -19,7 +19,7 @@ * id = "default_summary", * title = @Translation("List"), * help = @Translation("Displays the default summary as a list."), - * theme = "views_view_summary", + * theme = "item_list", * display_types = {"summary"} * ) */ diff --git a/core/modules/views/templates/views-view-summary.html.twig b/core/modules/views/templates/views-view-summary.html.twig deleted file mode 100644 index 3dde427..0000000 --- a/core/modules/views/templates/views-view-summary.html.twig +++ /dev/null @@ -1,31 +0,0 @@ -{# -/** - * @file - * Default theme implementation to display a list of summary lines. - * - * Available variables: - * - rows: The rows contained in this view. - * Each row contains: - * - url: The summary link URL. - * - link: The summary link text. - * - count: The number of items under this grouping. - * - attributes: HTML attributes to apply to each row. - * - active: A flag indicating whtether the row is active. - * - options: Flags indicating how the summary should be displayed. - * This contains: - * - count: A flag indicating whether the count should be displayed. - * - * @see template_preprocess_views_view_summary() - * - * @ingroup themeable - */ -#} - diff --git a/core/modules/views/views.module b/core/modules/views/views.module index 743626b..3607f91 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -302,6 +302,13 @@ function views_theme_suggestions_container_alter(array &$suggestions, array $var } /** + * Implements hook_theme_suggestions_HOOK(). + */ +function views_theme_suggestions_item_list(array $variables) { + return array('item_list__views_view_summary'); +} + +/** * Adds contextual links associated with a view display to a renderable array. * * This function should be called when a view is being rendered in a particular diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc index 45499fb..fff549a 100644 --- a/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -249,7 +249,7 @@ function template_preprocess_views_view_field(&$variables) { * - view: A ViewExecutable object. * - rows: The raw row data. */ -function template_preprocess_views_view_summary(&$variables) { +function template_preprocess_item_list__views_view_summary(&$variables) { /** @var \Drupal\views\ViewExecutable $view */ $view = $variables['view']; $argument = $view->argument[$view->build_info['summary_level']]; diff --git a/core/themes/classy/templates/views/views-view-summary.html.twig b/core/themes/classy/templates/views/views-view-summary.html.twig deleted file mode 100644 index 241aa50..0000000 --- a/core/themes/classy/templates/views/views-view-summary.html.twig +++ /dev/null @@ -1,31 +0,0 @@ -{# -/** - * @file - * Theme override to display a list of summary lines. - * - * Available variables: - * - rows: The rows contained in this view. - * Each row contains: - * - url: The summary link URL. - * - link: The summary link text. - * - count: The number of items under this grouping. - * - attributes: HTML attributes to apply to each row. - * - active: A flag indicating whtether the row is active. - * - options: Flags indicating how the summary should be displayed. - * This contains: - * - count: A flag indicating whether the count should be displayed. - * - * @see template_preprocess_views_view_summary() - */ -#} -
- -