function FieldUiTable::getInfo

Same name in other branches
  1. 9 core/modules/field_ui/src/Element/FieldUiTable.php \Drupal\field_ui\Element\FieldUiTable::getInfo()
  2. 8.9.x core/modules/field_ui/src/Element/FieldUiTable.php \Drupal\field_ui\Element\FieldUiTable::getInfo()
  3. 11.x core/modules/field_ui/src/Element/FieldUiTable.php \Drupal\field_ui\Element\FieldUiTable::getInfo()

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

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.