function ConfigNamesMapper::hasTranslatable
Same name in other branches
- 9 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::hasTranslatable()
- 10 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::hasTranslatable()
- 11.x core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::hasTranslatable()
Overrides ConfigMapperInterface::hasTranslatable
File
-
core/
modules/ config_translation/ src/ ConfigNamesMapper.php, line 455
Class
- ConfigNamesMapper
- Configuration mapper base implementation.
Namespace
Drupal\config_translationCode
public function hasTranslatable() {
foreach ($this->getConfigNames() as $name) {
if ($this->configMapperManager
->hasTranslatable($name)) {
return TRUE;
}
}
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.