function LocaleTranslatableProject::getLangcode

Same name and namespace in other branches
  1. 11.x core/modules/locale/src/LocaleTranslatableProject.php \Drupal\locale\LocaleTranslatableProject::getLangcode()

Returns the project langcode.

Return value

string|null Returns the language code or NULL if it was not set.

File

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

Class

LocaleTranslatableProject
Translatable project for interface translation.

Namespace

Drupal\locale

Code

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

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