function PoStreamWriter::setLangcode

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::setLangcode()
  2. 10 core/lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::setLangcode()
  3. 11.x core/lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::setLangcode()

Set the language code.

Parameters

string $langcode: The language code.

Overrides PoMetadataInterface::setLangcode

File

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

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Namespace

Drupal\Component\Gettext

Code

public function setLangcode($langcode) {
    $this->langcode = $langcode;
}

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