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

Breadcrumb

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

function Number::getInfo

Overrides ElementInterface::getInfo

2 calls to Number::getInfo()
Range::getInfo in core/lib/Drupal/Core/Render/Element/Range.php
Returns the element properties for this element.
Range::getInfo in core/lib/Drupal/Core/Render/Element/Range.php
Returns the element properties for this element.
1 method overrides Number::getInfo()
Range::getInfo in core/lib/Drupal/Core/Render/Element/Range.php
Returns the element properties for this element.

File

core/lib/Drupal/Core/Render/Element/Number.php, line 38

Class

Number
Provides a form element for numeric input, with special numeric validation.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() {
    $class = static::class;
    return [
        '#input' => TRUE,
        '#step' => 1,
        '#process' => [
            [
                $class,
                'processAjaxForm',
            ],
        ],
        '#element_validate' => [
            [
                $class,
                'validateNumber',
            ],
        ],
        '#pre_render' => [
            [
                $class,
                'preRenderNumber',
            ],
        ],
        '#theme' => 'input__number',
        '#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