Chris@0: /** Chris@0: * Implements hook_themes_uninstalled(). Chris@0: */ Chris@0: function {{ machine_name }}_themes_uninstalled(array $themes) { Chris@0: // Remove some state entries depending on the theme. Chris@0: foreach ($themes as $theme) { Chris@0: \Drupal::state()->delete('example.' . $theme); Chris@0: } Chris@0: }