function ConfigTranslationHooks::themesUninstalled

Implements hook_themes_uninstalled().

File

core/modules/config_translation/src/Hook/ConfigTranslationHooks.php, line 92

Class

ConfigTranslationHooks
Hook implementations for config_translation.

Namespace

Drupal\config_translation\Hook

Code

public function themesUninstalled() {
    // Themes can provide *.config_translation.yml declarations.
    // @todo Make ThemeHandler trigger an event instead and make
    //   ConfigMapperManager plugin manager subscribe to it.
    // @see https://www.drupal.org/node/2206347
    \Drupal::service('plugin.manager.config_translation.mapper')->clearCachedDefinitions();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.