diff --git a/core/modules/views/src/Plugin/views/style/DefaultSummary.php b/core/modules/views/src/Plugin/views/style/DefaultSummary.php index f81c9a1..9729c71 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__views_view_summary", * display_types = {"summary"} * ) */ diff --git a/core/modules/views/templates/item-list--views-view-summary.html.twig b/core/modules/views/templates/item-list--views-view-summary.html.twig new file mode 100644 index 0000000..f1e788b --- /dev/null +++ b/core/modules/views/templates/item-list--views-view-summary.html.twig @@ -0,0 +1,33 @@ +{# +/** + * @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/templates/views-view-summary.html.twig b/core/modules/views/templates/views-view-summary.html.twig deleted file mode 100644 index f1e788b..0000000 --- a/core/modules/views/templates/views-view-summary.html.twig +++ /dev/null @@ -1,33 +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.theme.inc b/core/modules/views/views.theme.inc index 68a38bc..82e2e9b 100644 --- a/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -285,7 +285,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']];