function hook_themes_uninstalled in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Render/theme.api.php \hook_themes_uninstalled()
- 9 core/lib/Drupal/Core/Render/theme.api.php \hook_themes_uninstalled()
Respond to themes being uninstalled.
Parameters
array $themes: Array containing the names of the themes being uninstalled.
See also
\Drupal\Core\Extension\ThemeInstallerInterface::uninstall()
Related topics
5 functions implement hook_themes_uninstalled()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- breakpoint_themes_uninstalled in core/
modules/ breakpoint/ breakpoint.module - Implements hook_themes_uninstalled().
- config_translation_themes_uninstalled in core/
modules/ config_translation/ config_translation.module - Implements hook_themes_uninstalled().
- help_topics_themes_uninstalled in core/
modules/ help_topics/ help_topics.module - Implements hook_themes_uninstalled().
- locale_themes_uninstalled in core/
modules/ locale/ locale.module - Implements hook_themes_uninstalled().
- update_themes_uninstalled in core/
modules/ update/ update.module - Implements hook_themes_uninstalled().
1 invocation of hook_themes_uninstalled()
- ThemeInstaller::uninstall in core/
lib/ Drupal/ Core/ Extension/ ThemeInstaller.php
File
- core/
lib/ Drupal/ Core/ Render/ theme.api.php, line 732 - Hooks and documentation related to the theme and render system.
Code
function hook_themes_uninstalled(array $themes) {
// Remove some state entries depending on the theme.
foreach ($themes as $theme) {
\Drupal::state()
->delete('example.' . $theme);
}
}