function hook_themes_installed
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Render/theme.api.php \hook_themes_installed()
- 10 core/lib/Drupal/Core/Render/theme.api.php \hook_themes_installed()
- 9 core/lib/Drupal/Core/Render/theme.api.php \hook_themes_installed()
- 8.9.x 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
14 functions implement hook_themes_installed()
Note: the procedural functions in this list are found by pattern matching, so the list may include some functions that are not actually implementations of this hook.
- BlockHooks::themesInstalled in core/
modules/ block/ src/ Hook/ BlockHooks.php - Implements hook_themes_installed().
- BlockHooks::themesInstalled in core/
modules/ block/ src/ Hook/ BlockHooks.php - Implements hook_themes_installed().
- BreakpointHooks::themesInstalled in core/
modules/ breakpoint/ src/ Hook/ BreakpointHooks.php - Implements hook_themes_installed().
- BreakpointHooks::themesInstalled in core/
modules/ breakpoint/ src/ Hook/ BreakpointHooks.php - Implements hook_themes_installed().
- ConfigTranslationHooks::themesInstalled in core/
modules/ config_translation/ src/ Hook/ ConfigTranslationHooks.php - Implements hook_themes_installed().
2 invocations of hook_themes_installed()
- BlockConfigSyncTest::testNoBlocksCreatedDuringConfigSync in core/
modules/ block/ tests/ src/ Kernel/ BlockConfigSyncTest.php - Tests blocks are not created during config sync.
- ThemeInstaller::install in core/
lib/ Drupal/ Core/ Extension/ ThemeInstaller.php - Installs a given list of themes.
File
-
core/
lib/ Drupal/ Core/ Render/ theme.api.php, line 790
Code
function hook_themes_installed($theme_list) : void {
foreach ($theme_list as $theme) {
block_theme_initialize($theme);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.