You are here

public function PoStreamWriter::getLangcode in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::getLangcode()

Gets the current language code used.

Return value

string The language code.

Overrides PoMetadataInterface::getLangcode

File

core/lib/Drupal/Component/Gettext/PoStreamWriter.php, line 64

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Namespace

Drupal\Component\Gettext

Code

public function getLangcode() {
  return $this->langcode;
}