function LocaleTranslatableProject::setLangcode

Sets the language code.

Parameters

string $langcode: The language code.

Return value

$this

File

core/modules/locale/src/LocaleTranslatableProject.php, line 87

Class

LocaleTranslatableProject
Translatable project for interface translation.

Namespace

Drupal\locale

Code

public function setLangcode(string $langcode) : static {
  $this->langcode = $langcode;
  return $this;
}

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