hook_themes_uninstalled(array $themes)
Respond to themes being uninstalled.
array $theme_list: Array containing the names of the themes being uninstalled.
\Drupal\Core\Extension\ThemeHandler::uninstall()
function hook_themes_uninstalled(array $themes) { // Remove some state entries depending on the theme. foreach ($themes as $theme) { \Drupal::state()->delete('example.' . $theme); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!theme.api.php/function/hook_themes_uninstalled/8.1.x