diff --git a/core/modules/views/src/Plugin/views/style/DefaultSummary.php b/core/modules/views/src/Plugin/views/style/DefaultSummary.php
index 63cf9dc..5040d27 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/views-view-summary.html.twig b/core/modules/views/templates/views-view-summary.html.twig
index 3dde427..c2eaac6 100644
--- a/core/modules/views/templates/views-view-summary.html.twig
+++ b/core/modules/views/templates/views-view-summary.html.twig
@@ -20,7 +20,8 @@
* @ingroup themeable
*/
#}
-
+
+
{% for row in rows %}
- {{ row.link }}
{% if options.count %}
@@ -28,4 +29,5 @@
{% endif %}
{% endfor %}
-
+
+
diff --git a/core/modules/views/views.module b/core/modules/views/views.module
old mode 100644
new mode 100755
index b9ff347..f73a320
--- a/core/modules/views/views.module
+++ b/core/modules/views/views.module
@@ -84,6 +84,13 @@ function views_views_pre_render($view) {
}
/**
+ * Implements hook_theme_suggestions_HOOK().
+ */
+function views__theme_suggestions_item_list__views_view_summary(array $variables) {
+ return 'item_list';
+}
+
+/**
* Implements hook_theme().
*
* Register views theming functions and those that are defined via views plugin
@@ -99,8 +106,8 @@ function views_theme($existing, $type, $theme, $path) {
// Our extra version of pager from pager.inc
$hooks['views_mini_pager'] = $base + array(
- 'variables' => array('tags' => array(), 'quantity' => 9, 'element' => 0, 'parameters' => array()),
- );
+ 'variables' => array('tags' => array(), 'quantity' => 9, 'element' => 0, 'parameters' => array()),
+ );
$variables = array(
// For displays, we pass in a dummy array as the first parameter, since
@@ -132,12 +139,12 @@ function views_theme($existing, $type, $theme, $path) {
// Default view themes
$hooks['views_view_field'] = $base + array(
- 'variables' => array('view' => NULL, 'field' => NULL, 'row' => NULL),
- 'function' => 'theme_views_view_field',
- );
+ 'variables' => array('view' => NULL, 'field' => NULL, 'row' => NULL),
+ 'function' => 'theme_views_view_field',
+ );
$hooks['views_view_grouping'] = $base + array(
- 'variables' => array('view' => NULL, 'grouping' => NULL, 'grouping_level' => NULL, 'rows' => NULL, 'title' => NULL),
- );
+ 'variables' => array('view' => NULL, 'grouping' => NULL, 'grouping_level' => NULL, 'rows' => NULL, 'title' => NULL),
+ );
// Only display, pager, row, and style plugins can provide theme hooks.
$plugin_types = [
@@ -220,12 +227,12 @@ function views_theme($existing, $type, $theme, $path) {
}
$hooks['views_form_views_form'] = $base + array(
- 'render element' => 'form',
- );
+ 'render element' => 'form',
+ );
$hooks['views_exposed_form'] = $base + array(
- 'render element' => 'form',
- );
+ 'render element' => 'form',
+ );
return $hooks;
}
@@ -246,9 +253,9 @@ function views_preprocess_node(&$variables) {
// If a node is being rendered in a view, and the view does not have a path,
// prevent drupal from accidentally setting the $page variable:
if (!empty($variables['view']->current_display)
- && $variables['page']
- && $variables['view_mode'] == 'full'
- && !$variables['view']->display_handler->hasPath()) {
+ && $variables['page']
+ && $variables['view_mode'] == 'full'
+ && !$variables['view']->display_handler->hasPath()) {
$variables['page'] = FALSE;
}
}
diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc
index 89c0f86..e6a3f47 100644
--- a/core/modules/views/views.theme.inc
+++ b/core/modules/views/views.theme.inc
@@ -237,7 +237,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()
- */
-#}
-
-
- {% for row in rows %}
- - {{ row.link }}
- {% if options.count %}
- ({{ row.count }})
- {% endif %}
-
- {% endfor %}
-
-