LanguageInterface::getName

public LanguageInterface::getName() Gets the name of the language. Return value string The human-readable name of the language (in the language that was used to construct this object). File core/lib/Drupal/Core/Language/LanguageInterface.php, line 106 Class LanguageInterface Defines a language. Namespace Drupal\Core\Language Code public function getName();

LanguageInterface::getId

public LanguageInterface::getId() Gets the ID (language code). Return value string The language code. File core/lib/Drupal/Core/Language/LanguageInterface.php, line 114 Class LanguageInterface Defines a language. Namespace Drupal\Core\Language Code public function getId();

LanguageInterface::getDirection

public LanguageInterface::getDirection() Gets the text direction (left-to-right or right-to-left). Return value string Either self::DIRECTION_LTR or self::DIRECTION_RTL. File core/lib/Drupal/Core/Language/LanguageInterface.php, line 122 Class LanguageInterface Defines a language. Namespace Drupal\Core\Language Code public function getDirection();

LanguageInterface::DIRECTION_RTL

Language written right to left. Possible value of $language->direction. File core/lib/Drupal/Core/Language/LanguageInterface.php, line 97 Class LanguageInterface Defines a language. Namespace Drupal\Core\Language Code const DIRECTION_RTL = 'rtl';

LanguageInterface::DIRECTION_LTR

Language written left to right. Possible value of $language->direction. File core/lib/Drupal/Core/Language/LanguageInterface.php, line 92 Class LanguageInterface Defines a language. Namespace Drupal\Core\Language Code const DIRECTION_LTR = 'ltr';

LanguageInterface

Defines a language. Hierarchy interface \Drupal\Core\Language\LanguageInterface File core/lib/Drupal/Core/Language/LanguageInterface.php, line 8 Namespace Drupal\Core\Language Members Name Modifiers Type Description LanguageInterface::DIRECTION_LTR constant Language written left to right. Possible value of $language->direction. LanguageInterface::DIRECTION_RTL constant Language written right to left. Possible value of $language->direction. LanguageInterfa

LanguageFormBase::__construct

public LanguageFormBase::__construct(ConfigurableLanguageManagerInterface $language_manager) Constructs a ContentEntityForm object. Parameters \Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The configurable language manager. File core/modules/language/src/Form/LanguageFormBase.php, line 30 Class LanguageFormBase Base form for language add and edit forms. Namespace Drupal\language\Form Code public function __construct(ConfigurableLanguageManagerInterface $lang

LanguageFormBase::validateCommon

public LanguageFormBase::validateCommon(array $form, FormStateInterface $form_state) Validates the language editing element. File core/modules/language/src/Form/LanguageFormBase.php, line 96 Class LanguageFormBase Base form for language add and edit forms. Namespace Drupal\language\Form Code public function validateCommon(array $form, FormStateInterface $form_state) { // Ensure sane field values for langcode and name. if (!isset($form['langcode_view']) && !preg_match('@^[a-

LanguageFormBase::create

public static LanguageFormBase::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service

LanguageFormBase::commonForm

public LanguageFormBase::commonForm(array &$form) Common elements of the language addition and editing form. File core/modules/language/src/Form/LanguageFormBase.php, line 46 Class LanguageFormBase Base form for language add and edit forms. Namespace Drupal\language\Form Code public function commonForm(array &$form) { /* @var $language \Drupal\language\ConfigurableLanguageInterface */ $language = $this->entity; if ($language->getId()) { $form['langcode_view'] =