You are here

function hook_themes_installed in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Render/theme.api.php \hook_themes_installed()
  2. 9 core/lib/Drupal/Core/Render/theme.api.php \hook_themes_installed()

Respond to themes being installed.

Parameters

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

See also

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

Related topics

7 functions implement hook_themes_installed()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

block_themes_installed in core/modules/block/block.module
Initializes blocks for installed themes.
breakpoint_themes_installed in core/modules/breakpoint/breakpoint.module
Implements hook_themes_installed().
config_translation_themes_installed in core/modules/config_translation/config_translation.module
Implements hook_themes_installed().
help_topics_themes_installed in core/modules/help_topics/help_topics.module
Implements hook_themes_installed().
locale_themes_installed in core/modules/locale/locale.module
Implements hook_themes_installed().

... See full list

1 invocation of hook_themes_installed()
ThemeInstaller::install in core/lib/Drupal/Core/Extension/ThemeInstaller.php

File

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

Code

function hook_themes_installed($theme_list) {
  foreach ($theme_list as $theme) {
    block_theme_initialize($theme);
  }
}