Add custom theme file
Need to temporarily allow (it seems) for custom block templates TODO: Move enabling code *out* of custom theme somehow.
This commit is contained in:
parent
f2d3e737b3
commit
81fca49826
1 changed files with 18 additions and 0 deletions
18
web/themes/custom/agarica/agarica.theme
Normal file
18
web/themes/custom/agarica/agarica.theme
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
// TODO: Make this file unnecessary because we will not allow deploying code to the platform
|
||||
|
||||
|
||||
/**
|
||||
* Implements hook_theme_suggestions_HOOK_alter for blocks.
|
||||
*
|
||||
* See "Inheriting Block Templates" in
|
||||
* https://www.drupal.org/docs/8/theming-drupal-8/creating-a-drupal-8-sub-theme-or-sub-theme-of-sub-theme
|
||||
*/
|
||||
function family_home_theme_suggestions_block_alter(&$suggestions, $variables) {
|
||||
|
||||
// Load theme suggestions for blocks from parent theme.
|
||||
foreach ($suggestions as &$suggestion) {
|
||||
$suggestion = str_replace('family_home_', 'octavia_', $suggestion);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue