function PoMetadataInterface::setLangcode

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

Set language code.

Parameters

string $langcode: Language code string.

5 methods override PoMetadataInterface::setLangcode()
PoDatabaseReader::setLangcode in core/modules/locale/src/PoDatabaseReader.php
Set language code.
PoDatabaseWriter::setLangcode in core/modules/locale/src/PoDatabaseWriter.php
Set language code.
PoMemoryWriter::setLangcode in core/lib/Drupal/Component/Gettext/PoMemoryWriter.php
Implements Drupal\Component\Gettext\PoMetadataInterface:setLangcode().
PoStreamReader::setLangcode in core/lib/Drupal/Component/Gettext/PoStreamReader.php
Set language code.
PoStreamWriter::setLangcode in core/lib/Drupal/Component/Gettext/PoStreamWriter.php
Set the language code.

File

core/lib/Drupal/Component/Gettext/PoMetadataInterface.php, line 19

Class

PoMetadataInterface
Methods required for both reader and writer implementations.

Namespace

Drupal\Component\Gettext

Code

public function setLangcode($langcode);

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