Skip to content
Snippets Groups Projects
Commit 28437fd5 authored by catch's avatar catch
Browse files

Issue #2607676 by andypost: Remove useless assigning in...

Issue #2607676 by andypost: Remove useless assigning in template_preprocess_views_view_unformatted()
parent 7b3d4442
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -740,8 +740,7 @@ function template_preprocess_views_view_unformatted(&$variables) { ...@@ -740,8 +740,7 @@ function template_preprocess_views_view_unformatted(&$variables) {
foreach ($rows as $id => $row) { foreach ($rows as $id => $row) {
$variables['rows'][$id] = array(); $variables['rows'][$id] = array();
$variables['rows'][$id]['content'] = $row; $variables['rows'][$id]['content'] = $row;
$variables['rows'][$id]['attributes'] = array(); $variables['rows'][$id]['attributes'] = new Attribute();
$variables['rows'][$id]['attributes'] = new Attribute($variables['rows'][$id]['attributes']);
if ($row_class = $view->style_plugin->getRowClass($id)) { if ($row_class = $view->style_plugin->getRowClass($id)) {
$variables['rows'][$id]['attributes']->addClass($row_class); $variables['rows'][$id]['attributes']->addClass($row_class);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment