public function FieldUiTable::getInfo in Drupal 10
Same name and namespace in other branches
- 8 core/modules/field_ui/src/Element/FieldUiTable.php \Drupal\field_ui\Element\FieldUiTable::getInfo()
- 9 core/modules/field_ui/src/Element/FieldUiTable.php \Drupal\field_ui\Element\FieldUiTable::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 Table::getInfo
File
- core/
modules/ field_ui/ src/ Element/ FieldUiTable.php, line 19
Class
- FieldUiTable
- Provides a field_ui table element.
Namespace
Drupal\field_ui\ElementCode
public function getInfo() {
$info = parent::getInfo();
$info['#regions'] = [
'' => [],
];
$info['#theme'] = 'field_ui_table';
// Prepend FieldUiTable's prerender callbacks.
array_unshift($info['#pre_render'], [
$this,
'tablePreRender',
], [
$this,
'preRenderRegionRows',
]);
return $info;
}