function ConfigMapperManager::clearCachedDefinitions

Same name in other branches
  1. 11.x core/modules/config_translation/src/ConfigMapperManager.php \Drupal\config_translation\ConfigMapperManager::clearCachedDefinitions()

Overrides DefaultPluginManager::clearCachedDefinitions

File

core/modules/config_translation/src/ConfigMapperManager.php, line 210

Class

ConfigMapperManager
Manages plugins for configuration translation mappers.

Namespace

Drupal\config_translation

Code

public function clearCachedDefinitions() {
    $cids = [];
    foreach ($this->languageManager
        ->getLanguages() as $language) {
        $cids[] = 'config_translation_info_plugins:' . $language->getId();
    }
    $this->cacheBackend
        ->deleteMultiple($cids);
    $this->definitions = NULL;
}

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