Updates the language cache.
protected function updateCache() {
if ($plugin = $this
->getPlugin()) {
$info = $plugin
->getPluginDefinition();
if (!isset($info['language_cache']) || !empty($info['language_cache'])) {
\Drupal::cache('data')
->set('tmgmt_languages:' . $this->name, $this->languageCache, Cache::PERMANENT, $this
->getCacheTags());
\Drupal::cache('data')
->set('tmgmt_language_pairs:' . $this->name, $this->languagePairsCache, Cache::PERMANENT, $this
->getCacheTags());
}
}
}