function LanguageInterface::getDirection

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::getDirection()
  2. 10 core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::getDirection()
  3. 11.x core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::getDirection()

Gets the text direction (left-to-right or right-to-left).

Return value

string Either self::DIRECTION_LTR or self::DIRECTION_RTL.

2 methods override LanguageInterface::getDirection()
ConfigurableLanguage::getDirection in core/modules/language/src/Entity/ConfigurableLanguage.php
Language::getDirection in core/lib/Drupal/Core/Language/Language.php
Gets the text direction (left-to-right or right-to-left).

File

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

Class

LanguageInterface
Defines an interface for languages.

Namespace

Drupal\Core\Language

Code

public function getDirection();

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