17 lines
330 B
Plaintext
17 lines
330 B
Plaintext
|
<?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();
|
||
|
}
|
||
|
}
|