function Table::getInfo
Same name in other branches
- 9 core/lib/Drupal/Core/Render/Element/Table.php \Drupal\Core\Render\Element\Table::getInfo()
- 8.9.x core/lib/Drupal/Core/Render/Element/Table.php \Drupal\Core\Render\Element\Table::getInfo()
- 10 core/lib/Drupal/Core/Render/Element/Table.php \Drupal\Core\Render\Element\Table::getInfo()
Overrides ElementInterface::getInfo
1 call to Table::getInfo()
- FieldUiTable::getInfo in core/
modules/ field_ui/ src/ Element/ FieldUiTable.php
2 methods override Table::getInfo()
- FieldUiTable::getInfo in core/
modules/ field_ui/ src/ Element/ FieldUiTable.php - Tableselect::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ Tableselect.php
File
-
core/
lib/ Drupal/ Core/ Render/ Element/ Table.php, line 117
Class
- Table
- Provides a render element for a table.
Namespace
Drupal\Core\Render\ElementCode
public function getInfo() {
$class = static::class;
return [
'#header' => [],
'#rows' => [],
'#empty' => '',
// Properties for tableselect support.
'#input' => TRUE,
'#tree' => TRUE,
'#tableselect' => FALSE,
'#sticky' => FALSE,
'#responsive' => TRUE,
'#multiple' => TRUE,
'#js_select' => TRUE,
'#process' => [
[
$class,
'processTable',
],
],
'#element_validate' => [
[
$class,
'validateTable',
],
],
// Properties for tabledrag support.
// The value is a list of arrays that are passed to
// drupal_attach_tabledrag(). Table::preRenderTable() prepends the HTML ID
// of the table to each set of options.
// @see drupal_attach_tabledrag()
'#tabledrag' => [],
// Render properties.
'#pre_render' => [
[
$class,
'preRenderTable',
],
],
'#theme' => 'table',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.