function ConfigMapperInterface::getLangcode

Same name and namespace in other branches
  1. 9 core/modules/config_translation/src/ConfigMapperInterface.php \Drupal\config_translation\ConfigMapperInterface::getLangcode()
  2. 8.9.x core/modules/config_translation/src/ConfigMapperInterface.php \Drupal\config_translation\ConfigMapperInterface::getLangcode()
  3. 10 core/modules/config_translation/src/ConfigMapperInterface.php \Drupal\config_translation\ConfigMapperInterface::getLangcode()

Returns the original language code of the configuration.

Throws

\RuntimeException Throws an exception if the language codes in the config files don't match.

1 method overrides ConfigMapperInterface::getLangcode()
ConfigNamesMapper::getLangcode in core/modules/config_translation/src/ConfigNamesMapper.php
Returns the original language code of the configuration.

File

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

Class

ConfigMapperInterface
Defines an interface for configuration mapper.

Namespace

Drupal\config_translation

Code

public function getLangcode();

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