FieldUiTable::getInfo

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

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;
}
doc_Drupal
2016-10-29 09:12:55
Comments
Leave a Comment

Please login to continue.