function ConfigMapperInterface::hasTranslation

Same name in other branches
  1. 9 core/modules/config_translation/src/ConfigMapperInterface.php \Drupal\config_translation\ConfigMapperInterface::hasTranslation()
  2. 8.9.x core/modules/config_translation/src/ConfigMapperInterface.php \Drupal\config_translation\ConfigMapperInterface::hasTranslation()
  3. 11.x 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.

1 method overrides ConfigMapperInterface::hasTranslation()
ConfigNamesMapper::hasTranslation in core/modules/config_translation/src/ConfigNamesMapper.php
Checks whether there is already a translation for this mapper.

File

core/modules/config_translation/src/ConfigMapperInterface.php, line 282

Class

ConfigMapperInterface
Defines an interface for configuration mapper.

Namespace

Drupal\config_translation

Code

public function hasTranslation(LanguageInterface $language);

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