PluralVariants

Defines form elements for plurals in configuration translation.

Hierarchy

File

core/modules/config_translation/src/FormElement/PluralVariants.php, line 13

Namespace

Drupal\config_translation\FormElement

Members

Name Modifiers Type Description
FormElementBase::$definition protected property The data definition of the element this form element is for.
FormElementBase::$element protected property The schema element this form is for.
FormElementBase::create public static function Creates a form element instance from a schema definition. Overrides ElementInterface::create
FormElementBase::getTranslationBuild public function Builds a render array containg the source and translation form elements. Overrides ElementInterface::getTranslationBuild
FormElementBase::__construct public function Constructs a FormElementBase.
PluralVariants::getSourceElement protected function Returns the source element for a given configuration definition. Overrides FormElementBase::getSourceElement
PluralVariants::getTranslationElement protected function Returns the translation form element for a given configuration definition. Overrides FormElementBase::getTranslationElement
PluralVariants::setConfig public function Sets configuration based on a nested form value array. Overrides FormElementBase::setConfig
StringTranslationTrait::$stringTranslation protected property The string translation service.
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use.
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
doc_Drupal
2016-10-29 09:34:21
Comments
Leave a Comment

Please login to continue.