Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes
This commit is contained in:
parent
b11a755ba8
commit
c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions
25
core/themes/stable/stable.theme
Normal file
25
core/themes/stable/stable.theme
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Functions to support theming in the Stable theme.
|
||||
*/
|
||||
|
||||
use Drupal\Component\Utility\Html;
|
||||
|
||||
/**
|
||||
* Implements template_preprocess_links().
|
||||
*/
|
||||
function stable_preprocess_links(&$variables) {
|
||||
// @deprecated in Drupal 8.0.x and will be removed before 9.0.0. This feature
|
||||
// of adding a class based on the associative key can cause CSS class name
|
||||
// conflicts.
|
||||
if (!empty($variables['links'])) {
|
||||
foreach ($variables['links'] as $key => $value) {
|
||||
if (!is_numeric($key)) {
|
||||
$class = Html::getClass($key);
|
||||
$variables['links'][$key]['attributes']->addClass($class);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in a new issue