function ConfigMapperManager::clearCachedDefinitions
Same name in other branches
- 10 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_translationCode
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.