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\ElementCode
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' => [],
];
}