function ConfigMapperInterface::getLangcodeFromConfig

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

Returns the language code of a configuration object given its name.

Parameters

string $config_name: The name of the configuration object.

Return value

string The language code of the configuration object.

1 method overrides ConfigMapperInterface::getLangcodeFromConfig()
ConfigNamesMapper::getLangcodeFromConfig in core/modules/config_translation/src/ConfigNamesMapper.php
Returns the language code of a configuration object given its name.

File

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

Class

ConfigMapperInterface
Defines an interface for configuration mapper.

Namespace

Drupal\config_translation

Code

public function getLangcodeFromConfig($config_name);

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