Test adding a variable via preprocessing
This commit is contained in:
parent
4953744c30
commit
49e8a99e36
2 changed files with 9 additions and 1 deletions
|
@ -5,6 +5,13 @@
|
|||
* Functions to support theming in the Tailwind CSS theme.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_HOOK().
|
||||
*/
|
||||
function tailwindcss_preprocess_html(&$variables) {
|
||||
$variables['attributes']['class'][] = 'tw-bg-red-200';
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_HOOK().
|
||||
*/
|
||||
|
|
Reference in a new issue