Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Textfield.php

function Textfield::getInfo

Overrides ElementInterface::getInfo

4 calls to Textfield::getInfo()
EntityAutocomplete::getInfo in core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php
Returns the element properties for this element.
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.
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 44

Class

Textfield
Provides a one-line text field form element.

Namespace

Drupal\Core\Render\Element

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal