function Tableselect::getInfo
Same name in other branches
- 9 core/lib/Drupal/Core/Render/Element/Tableselect.php \Drupal\Core\Render\Element\Tableselect::getInfo()
- 8.9.x core/lib/Drupal/Core/Render/Element/Tableselect.php \Drupal\Core\Render\Element\Tableselect::getInfo()
- 11.x core/lib/Drupal/Core/Render/Element/Tableselect.php \Drupal\Core\Render\Element\Tableselect::getInfo()
Overrides Table::getInfo
File
-
core/
lib/ Drupal/ Core/ Render/ Element/ Tableselect.php, line 60
Class
- Tableselect
- Provides a form element for a table with radios or checkboxes in left column.
Namespace
Drupal\Core\Render\ElementCode
public function getInfo() {
$class = static::class;
return [
'#input' => TRUE,
'#js_select' => TRUE,
'#multiple' => TRUE,
'#responsive' => TRUE,
'#sticky' => FALSE,
'#pre_render' => [
[
$class,
'preRenderTable',
],
[
$class,
'preRenderTableselect',
],
],
'#process' => [
[
$class,
'processTableselect',
],
],
'#options' => [],
'#empty' => '',
'#theme' => 'table__tableselect',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.