Force add tailwindcss

This commit is contained in:
Oliver Davies 2019-05-16 13:07:02 +01:00
parent 8e23ea6dc6
commit 76c02c1eb7
15 changed files with 35729 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<?php
/**
* @file
* Functions to support theming in the Tailwind CSS theme.
*/
/**
* Implements hook_preprocess_HOOK().
*/
function tailwindcss_preprocess_block(&$variables) {
if ($variables['base_plugin_id'] == 'system_branding_block') {
$variables['site_logo'] = '';
if ($variables['content']['site_logo']['#access'] && $variables['content']['site_logo']['#uri']) {
$variables['site_logo'] = str_replace('.svg', '.png', $variables['content']['site_logo']['#uri']);
}
}
}