Defines the date format element for the configuration translation interface.
Hierarchy
- class \Drupal\config_translation\FormElement\FormElementBase implements ElementInterface uses StringTranslationTrait
- class \Drupal\config_translation\FormElement\DateFormat
File
- core/modules/config_translation/src/FormElement/DateFormat.php, line 10
Namespace
Drupal\config_translation\FormElement
Members
Name | Modifiers | Type | Description |
---|---|---|---|
DateFormat::getTranslationElement | public | function | Returns the translation form element for a given configuration definition. Overrides FormElementBase::getTranslationElement |
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::getSourceElement | protected | function | Returns the source element for a given configuration definition. |
FormElementBase::getTranslationBuild | public | function | Builds a render array containg the source and translation form elements. Overrides ElementInterface::getTranslationBuild |
FormElementBase::setConfig | public | function | Sets configuration based on a nested form value array. Overrides ElementInterface::setConfig |
FormElementBase::__construct | public | function | Constructs a FormElementBase. |
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. |
Please login to continue.