Issue #2310341 by ilkkave | YesCT: Remove backwards compatibility for $heading['class'] in template_preprocess_menu_tree().

8.0.x
Alex Pott 2014-09-15 11:06:37 +01:00
parent 1bf3b8dc0a
commit 34cce8dcdc
1 changed files with 0 additions and 5 deletions

View File

@ -323,11 +323,6 @@ function template_preprocess_menu_tree(&$variables) {
'level' => 'h2',
'attributes' => array(),
);
// @todo Remove backwards compatibility for $heading['class'].
// https://www.drupal.org/node/2310341
if (isset($heading['class'])) {
$heading['attributes']['class'] = $heading['class'];
}
// Convert the attributes array into an Attribute object.
$heading['attributes'] = new Attribute($heading['attributes']);
$heading['text'] = String::checkPlain($heading['text']);