public function TestConfigNamesMapper::getInternalLangcode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 659 - Contains \Drupal\Tests\config_translation\Unit\ConfigNamesMapperTest.
Class
- TestConfigNamesMapper
- Defines a test mapper class.
Namespace
Drupal\Tests\config_translation\UnitCode
public function getInternalLangcode() {
return isset($this->langcode) ? $this->langcode : NULL;
}