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

Breadcrumb

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

function Tel::getInfo

Overrides ElementInterface::getInfo

File

core/lib/Drupal/Core/Render/Element/Tel.php, line 35

Class

Tel
Provides a form element for entering a telephone number.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() {
    $class = static::class;
    return [
        '#input' => TRUE,
        '#size' => 30,
        '#maxlength' => 128,
        '#autocomplete_route_name' => FALSE,
        '#process' => [
            [
                $class,
                'processAutocomplete',
            ],
            [
                $class,
                'processAjaxForm',
            ],
            [
                $class,
                'processPattern',
            ],
        ],
        '#pre_render' => [
            [
                $class,
                'preRenderTel',
            ],
        ],
        '#theme' => 'input__tel',
        '#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