hook_themes_installed

hook_themes_installed($theme_list)

Respond to themes being installed.

Parameters

array $theme_list: Array containing the names of the themes being installed.

See also

\Drupal\Core\Extension\ThemeHandler::install()

Related topics

Hooks
Define functions that alter the behavior of Drupal core.

File

core/lib/Drupal/Core/Render/theme.api.php, line 728
Hooks and documentation related to the theme and render system.

Code

1
2
3
4
5
function hook_themes_installed($theme_list) {
  foreach ($theme_list as $theme) {
    block_theme_initialize($theme);
  }
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.