function PoMetadataInterface::getLangcode
Same name in other branches
- 9 core/lib/Drupal/Component/Gettext/PoMetadataInterface.php \Drupal\Component\Gettext\PoMetadataInterface::getLangcode()
- 10 core/lib/Drupal/Component/Gettext/PoMetadataInterface.php \Drupal\Component\Gettext\PoMetadataInterface::getLangcode()
- 11.x core/lib/Drupal/Component/Gettext/PoMetadataInterface.php \Drupal\Component\Gettext\PoMetadataInterface::getLangcode()
Get language code.
Return value
string Language code string.
5 methods override PoMetadataInterface::getLangcode()
- PoDatabaseReader::getLangcode in core/
modules/ locale/ src/ PoDatabaseReader.php - Get language code.
- PoDatabaseWriter::getLangcode in core/
modules/ locale/ src/ PoDatabaseWriter.php - Get language code.
- PoMemoryWriter::getLangcode in core/
lib/ Drupal/ Component/ Gettext/ PoMemoryWriter.php - Implements Drupal\Component\Gettext\PoMetadataInterface:getLangcode().
- PoStreamReader::getLangcode in core/
lib/ Drupal/ Component/ Gettext/ PoStreamReader.php - Get language code.
- PoStreamWriter::getLangcode in core/
lib/ Drupal/ Component/ Gettext/ PoStreamWriter.php - Gets the current language code used.
File
-
core/
lib/ Drupal/ Component/ Gettext/ PoMetadataInterface.php, line 27
Class
- PoMetadataInterface
- Methods required for both reader and writer implementations.
Namespace
Drupal\Component\GettextCode
public function getLangcode();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.