You are here

public function PoMetadataInterface::getLangcode in Drupal 9

Same name and namespace in other branches
  1. 8 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\Gettext

Code

public function getLangcode();