function EntityDisplayFormBase::tablePreRender

Performs pre-render tasks on field_ui_table elements.

Parameters

array $elements: A structured array containing two sub-levels of elements. Properties used:

  • #tabledrag: The value is a list of $options arrays that are passed to drupal_attach_tabledrag(). The HTML ID of the table is added to each $options array.

Return value

array

Deprecated

in drupal:8.0.0 and is removed from drupal:9.0.0.

See also

\Drupal\Core\Render\RendererInterface::render()

\Drupal\Core\Render\Element\Table::preRenderTable()

File

core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 742

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

public function tablePreRender($elements) {
    return FieldUiTable::tablePreRender($elements);
}

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