commit 9acda6fca1dc00c458fb4acec1f8a8a47ba4ccfd Author: Joel Pittet Date: Thu Aug 14 20:17:06 2014 -0700 cleaner diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 04794b0..f782246 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -653,9 +653,6 @@ function template_preprocess_node(&$variables) { // Add article ARIA role. $variables['attributes']['role'] = 'article'; - - // Add an empty class for modules - $variables['attributes']['class'] = array(); } /** diff --git a/core/modules/node/templates/node.html.twig b/core/modules/node/templates/node.html.twig index feead8a..ddbb63d 100644 --- a/core/modules/node/templates/node.html.twig +++ b/core/modules/node/templates/node.html.twig @@ -79,7 +79,7 @@ #} {% - set add_classes = [ + set classes = [ 'node', 'node--type-' ~ node.bundle|clean_class, node.promoted ? 'node--promoted', @@ -90,7 +90,7 @@ ] %} - + {{ title_prefix }} {% if not page %} diff --git a/core/themes/bartik/templates/node.html.twig b/core/themes/bartik/templates/node.html.twig index 29a9e9f..186f3e6 100644 --- a/core/themes/bartik/templates/node.html.twig +++ b/core/themes/bartik/templates/node.html.twig @@ -72,7 +72,7 @@ */ #} {% - set add_classes = [ + set classes = [ 'node', 'node--type-' ~ node.bundle|clean_class, node.promoted ? 'node--promoted', @@ -84,7 +84,7 @@ ] %} - +
{{ title_prefix }}