You are here

public function ConfigurableLanguage::getId in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/language/src/Entity/ConfigurableLanguage.php \Drupal\language\Entity\ConfigurableLanguage::getId()

Gets the ID (language code).

Return value

string The language code.

Overrides LanguageInterface::getId

File

core/modules/language/src/Entity/ConfigurableLanguage.php, line 236

Class

ConfigurableLanguage
Defines the ConfigurableLanguage entity.

Namespace

Drupal\language\Entity

Code

public function getId() {
  return $this
    ->id();
}