You are here

public function Textfield::getInfo in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Render/Element/Textfield.php \Drupal\Core\Render\Element\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

2 calls to Textfield::getInfo()
EntityAutocomplete::getInfo in core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php
Returns the element properties for this element.
PathElement::getInfo in core/lib/Drupal/Core/Render/Element/PathElement.php
Returns the element properties for this element.
3 methods override Textfield::getInfo()
EntityAutocomplete::getInfo in core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php
Returns the element properties for this element.
MachineName::getInfo in core/lib/Drupal/Core/Render/Element/MachineName.php
Returns the element properties for this element.
PathElement::getInfo in core/lib/Drupal/Core/Render/Element/PathElement.php
Returns the element properties for this element.

File

core/lib/Drupal/Core/Render/Element/Textfield.php, line 53
Contains \Drupal\Core\Render\Element\Textfield.

Class

Textfield
Provides a one-line text field form element.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() {
  $class = get_class($this);
  return array(
    '#input' => TRUE,
    '#size' => 60,
    '#maxlength' => 128,
    '#autocomplete_route_name' => FALSE,
    '#process' => array(
      array(
        $class,
        'processAutocomplete',
      ),
      array(
        $class,
        'processAjaxForm',
      ),
      array(
        $class,
        'processPattern',
      ),
      array(
        $class,
        'processGroup',
      ),
    ),
    '#pre_render' => array(
      array(
        $class,
        'preRenderTextfield',
      ),
      array(
        $class,
        'preRenderGroup',
      ),
    ),
    '#theme' => 'input__textfield',
    '#theme_wrappers' => array(
      'form_element',
    ),
  );
}