function TestConfigNamesMapper::getInternalLangcode

Same name in other branches
  1. 9 core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php \Drupal\Tests\config_translation\Unit\TestConfigNamesMapper::getInternalLangcode()
  2. 8.9.x core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php \Drupal\Tests\config_translation\Unit\TestConfigNamesMapper::getInternalLangcode()
  3. 11.x core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php \Drupal\Tests\config_translation\Unit\TestConfigNamesMapper::getInternalLangcode()

Gets the internal language code of this mapper, if any.

This method is not to be confused with ConfigMapperInterface::getLangcode().

Return value

string|null The language code of this mapper if it is set; NULL otherwise.

File

core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php, line 672

Class

TestConfigNamesMapper
Defines a test mapper class.

Namespace

Drupal\Tests\config_translation\Unit

Code

public function getInternalLangcode() {
    return $this->langcode ?? NULL;
}

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