LanguageInterface::LANGCODE_DEFAULT

Same name in other branches
  1. 9 core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::LANGCODE_DEFAULT
  2. 8.9.x core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::LANGCODE_DEFAULT
  3. 11.x core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::LANGCODE_DEFAULT

Language code referring to the default language of data, e.g. of an entity.

See the BCP 47 syntax for defining private language tags: http://www.rfc-editor.org/rfc/bcp/bcp47.txt

File

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

Class

LanguageInterface
Defines an interface for languages.

Namespace

Drupal\Core\Language

Code

const LANGCODE_DEFAULT = 'x-default';

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