public function Dropdown::getInfo in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
- 8.2 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
- 8.3 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
- 8.4 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
- 8.5 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
- 8.6 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
- 8.7 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
- 8.8 modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
- 10.3.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
- 10.0.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
- 10.1.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::getInfo()
- 10.2.x modules/custom/dropdown/src/Element/Dropdown.php \Drupal\dropdown\Element\Dropdown::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 ElementInterface::getInfo
File
- modules/
custom/ dropdown/ src/ Element/ Dropdown.php, line 22
Class
- Dropdown
- Provides an dropdown element.
Namespace
Drupal\dropdown\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#label' => 'Default Label',
'#process' => [
[
$class,
'processDropdown',
],
],
'#description' => t('Dropdown element.'),
'#theme_wrappers' => [
'dropdown',
],
'#pre_render' => [
[
$class,
'preRenderDropdown',
],
],
];
}