public function ConfigMapperInterface::hasTranslation in Drupal 10
Same name and namespace in other branches
- 8 core/modules/config_translation/src/ConfigMapperInterface.php \Drupal\config_translation\ConfigMapperInterface::hasTranslation()
- 9 core/modules/config_translation/src/ConfigMapperInterface.php \Drupal\config_translation\ConfigMapperInterface::hasTranslation()
Checks whether there is already a translation for this mapper.
Parameters
\Drupal\Core\Language\LanguageInterface $language: A language object.
Return value
bool TRUE if any of the configuration elements have a translation in the given language, FALSE otherwise.
File
- core/
modules/ config_translation/ src/ ConfigMapperInterface.php, line 282
Class
- ConfigMapperInterface
- Defines an interface for configuration mapper.
Namespace
Drupal\config_translationCode
public function hasTranslation(LanguageInterface $language);