public function Multiselect::getInfo in Multiselect 8
Same name and namespace in other branches
- 2.x src/Element/Multiselect.php \Drupal\multiselect\Element\Multiselect::getInfo()
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides Select::getInfo
File
- src/
Element/ Multiselect.php, line 20
Class
- Multiselect
- Provides a form element for displaying the label for a form element.
Namespace
Drupal\multiselect\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#theme' => 'multiselect',
'#input' => TRUE,
'#multiple' => TRUE,
'#process' => [
[
$class,
'processSelect',
],
],
'#default_value' => NULL,
'#theme_wrappers' => [
'form_element',
],
'#attached' => [
'library' => [
'multiselect/drupal.multiselect',
],
],
];
}