ConfigNamesMapper::hasTranslatable

public ConfigNamesMapper::hasTranslatable()

Checks if pieces of this configuration mapper have translatables.

Return value

bool TRUE if at least one of the configuration elements has translatables, FALSE otherwise.

Overrides ConfigMapperInterface::hasTranslatable

File

core/modules/config_translation/src/ConfigNamesMapper.php, line 438

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

public function hasTranslatable() {
  foreach ($this->getConfigNames() as $name) {
    if ($this->configMapperManager->hasTranslatable($name)) {
      return TRUE;
    }
  }
  return FALSE;
}
doc_Drupal
2016-10-29 08:54:21
Comments
Leave a Comment

Please login to continue.