Test adding a variable via preprocessing

This commit is contained in:
Oliver Davies 2019-05-16 20:32:14 +01:00
parent 4953744c30
commit 49e8a99e36
2 changed files with 9 additions and 1 deletions

View file

@ -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().
*/