You are here

public function LanguageInterface::getId in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::getId()
  2. 9 core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::getId()

Gets the ID (language code).

Return value

string The language code.

1 method overrides LanguageInterface::getId()
ConfigurableLanguage::getId in core/modules/language/src/Entity/ConfigurableLanguage.php
Gets the ID (language code).

File

core/lib/Drupal/Core/Language/LanguageInterface.php, line 123

Class

LanguageInterface
Defines an interface for languages.

Namespace

Drupal\Core\Language

Code

public function getId();