function EntityFormDisplayEditForm::getTableHeader

Same name and namespace in other branches
  1. 9 core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php \Drupal\field_ui\Form\EntityFormDisplayEditForm::getTableHeader()
  2. 8.9.x core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php \Drupal\field_ui\Form\EntityFormDisplayEditForm::getTableHeader()
  3. 10 core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php \Drupal\field_ui\Form\EntityFormDisplayEditForm::getTableHeader()

Returns an array containing the table headers.

Return value

array The table header.

Overrides EntityDisplayFormBase::getTableHeader

File

core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php, line 96

Class

EntityFormDisplayEditForm
Edit form for the EntityFormDisplay entity type.

Namespace

Drupal\field_ui\Form

Code

protected function getTableHeader() {
  return [
    $this->t('Field'),
    [
      'data' => $this->t('Machine name'),
      'class' => [
        RESPONSIVE_PRIORITY_MEDIUM,
        'machine-name',
      ],
    ],
    $this->t('Weight'),
    $this->t('Parent'),
    $this->t('Region'),
    [
      'data' => $this->t('Widget'),
      'colspan' => 3,
    ],
  ];
}

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