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

Breadcrumb

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

function Select::getInfo

Overrides ElementInterface::getInfo

File

core/lib/Drupal/Core/Render/Element/Select.php, line 87

Class

Select
Provides a form element for a drop-down menu or scrolling selection box.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() {
    $class = static::class;
    return [
        '#input' => TRUE,
        '#multiple' => FALSE,
        '#sort_options' => FALSE,
        '#sort_start' => NULL,
        '#process' => [
            [
                $class,
                'processSelect',
            ],
            [
                $class,
                'processAjaxForm',
            ],
        ],
        '#pre_render' => [
            [
                $class,
                'preRenderSelect',
            ],
        ],
        '#theme' => 'select',
        '#theme_wrappers' => [
            'form_element',
        ],
        '#options' => [],
    ];
}

API Navigation

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