Textfield::valueCallback

public static Textfield::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The value to as

Textfield::preRenderTextfield

public static Textfield::preRenderTextfield($element) Prepares a #type 'textfield' render element for input.html.twig. Parameters array $element: An associative array containing the properties of the element. Properties used: #title, #value, #description, #size, #maxlength, #placeholder, #required, #attributes. Return value array The $element with prepared variables ready for input.html.twig. File core/lib/Drupal/Core/Render/Element/Textfield.php, line 96 Class Textfield Provides a one-l

Textfield::getTranslationElement

public Textfield::getTranslationElement(LanguageInterface $translation_language, $source_config, $translation_config) Returns the translation form element for a given configuration definition. For complex data structures (such as mappings) that are translatable wholesale but contain non-translatable properties, the form element is responsible for checking access to the source value of those properties. In case of formatted text, for example, access to the source text format must be checked. If

Textfield::getInfo

public Textfield::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/Textfield.php, line 48 Class Textfield Provides a one-line text field form element. Namespace Drupal\Core\Render\Element Code publ

Textfield

Defines the textfield element for the configuration translation interface. Hierarchy class \Drupal\config_translation\FormElement\FormElementBase implements ElementInterface uses StringTranslationTraitclass \Drupal\config_translation\FormElement\Textfield File core/modules/config_translation/src/FormElement/Textfield.php, line 10 Namespace Drupal\config_translation\FormElement Members Name Modifiers Type Description FormElementBase::$definition protected property The da

Textfield

Provides a one-line text field form element. Properties: #maxlength: Maximum number of characters of input allowed. #size: The size of the input element in characters. #autocomplete_route_name: A route to be used as callback URL by the autocomplete JavaScript library. #autocomplete_route_parameters: An array of parameters to be used in conjunction with the route name. Usage example: $form['title'] = array( '#type' => 'textfield', '#title' => $this->t('Subject'), '#default_v

Textarea::valueCallback

public static Textarea::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The value to ass

Textarea::getTranslationElement

public Textarea::getTranslationElement(LanguageInterface $translation_language, $source_config, $translation_config) Returns the translation form element for a given configuration definition. For complex data structures (such as mappings) that are translatable wholesale but contain non-translatable properties, the form element is responsible for checking access to the source value of those properties. In case of formatted text, for example, access to the source text format must be checked. If t

Textarea::getInfo

public Textarea::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/Textarea.php, line 34 Class Textarea Provides a form element for input of multiple-line text. Namespace Drupal\Core\Render\Element

textarea.html.twig

Default theme implementation for a 'textarea' #type form element. Available variables wrapper_attributes: A list of HTML attributes for the wrapper element. attributes: A list of HTML attributes for the <textarea> element. resizable: An indicator for whether the textarea is resizable. required: An indicator for whether the textarea is required. value: The textarea content. See also template_preprocess_textarea() File core/modules/system/templates/textarea.html.twig Related topi