public 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\Element
Code
1 2 3 4 5 6 7 8 | 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 ; } |
Please login to continue.