gridspinoza/gridspinoza.theme

17 lines
330 B
Plaintext
Raw Normal View History

2021-11-05 15:14:36 +01:00
<?php
/**
* @file
* Bootstrap sub-theme.
*
* Place your custom PHP code in this file.
*/
/**
* Implements hook_preprocess_html().
*/
function gridspinoza_preprocess_html(&$variables) {
if ($node = \Drupal::request()->attributes->get('node')) {
$variables['attributes']['class'][] = 'page-node-' . $node->id();
}
}