Add Footer Block options to make_block
This commit is contained in:
parent
19d77064b0
commit
efb2a51216
9 changed files with 185 additions and 12 deletions
14
internal/wisski/ingredient/php/extras/theme.php
Normal file
14
internal/wisski/ingredient/php/extras/theme.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Gets the actve theme of this WissKI
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_active_theme(): string {
|
||||
$theme = \Drupal::service('theme.manager')->getActiveTheme();
|
||||
if (!$theme) {
|
||||
return "";
|
||||
}
|
||||
return $theme->getName();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue