Add Footer Block options to make_block

This commit is contained in:
Tom 2023-08-30 13:59:00 +02:00
parent 19d77064b0
commit efb2a51216
9 changed files with 185 additions and 12 deletions

View 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();
}