You are here

public function LanguageInterface::getDirection in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::getDirection()
  2. 9 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.

1 method overrides LanguageInterface::getDirection()
ConfigurableLanguage::getDirection in core/modules/language/src/Entity/ConfigurableLanguage.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();