public function CustomLanguage::getDirection in Custom Language field 8
Gets the text direction (left-to-right or right-to-left).
Return value
string Either self::DIRECTION_LTR or self::DIRECTION_RTL.
Overrides LanguageInterface::getDirection
File
- src/
Entity/ CustomLanguage.php, line 122
Class
- CustomLanguage
- Defines the CustomLanguage entity.
Namespace
Drupal\languagefield\EntityCode
public function getDirection() {
return $this->direction = static::DIRECTION_LTR;
}