block_themes_installed

block_themes_installed($theme_list)

Initializes blocks for installed themes.

Parameters

$theme_list: An array of theme names.

File

core/modules/block/block.module, line 90
Controls the visual building blocks a page is constructed with.

Code

1
2
3
4
5
6
7
8
function block_themes_installed($theme_list) {
  foreach ($theme_list as $theme) {
    // Don't initialize themes that are not displayed in the UI.
    if (\Drupal::service('theme_handler')->hasUi($theme)) {
      block_theme_initialize($theme);
    }
  }
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.