Skip to content
Snippets Groups Projects
Commit abd2b542 authored by git's avatar git Committed by Andrey Troeglazov
Browse files

Issue #2888527 by pdenooijer, aleanna, ANDiTKO, andrey.troeglazov,...

Issue #2888527 by pdenooijer, aleanna, ANDiTKO, andrey.troeglazov, melvinlouwerse: Notice: Indirect modification of overloaded element of Drupal\Core\Template\Attribute
parent f64867f9
No related branches found
No related tags found
1 merge request!10Auto complete Hover style changes
......@@ -6,13 +6,19 @@
*/
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Template\Attribute;
/**
* Implements hook_preprocess_HOOK() for HTML document templates.
*/
function adminimal_theme_preprocess_html(&$variables) {
// Add adminimal class to the body.
$variables['attributes']['class'][] = 'adminimal';
if ($variables['attributes'] instanceof Attribute) {
$variables['attributes']->addClass('adminimal');
}
else {
$variables['attributes']['class'][] = 'adminimal';
}
// Add library with custom CSS.
if (theme_get_setting('custom_css')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment