Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LanguageInterface.php

function LanguageInterface::getId

Gets the ID (language code).

Return value

string The language code.

2 methods override LanguageInterface::getId()
ConfigurableLanguage::getId in core/modules/language/src/Entity/ConfigurableLanguage.php
Gets the ID (language code).
Language::getId in core/lib/Drupal/Core/Language/Language.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();
RSS feed
Powered by Drupal