function LayoutBuilderEntityViewDisplayForm::buildExtraFieldRow

Same name in other branches
  1. 9 core/modules/layout_builder/src/Form/LayoutBuilderEntityViewDisplayForm.php \Drupal\layout_builder\Form\LayoutBuilderEntityViewDisplayForm::buildExtraFieldRow()
  2. 10 core/modules/layout_builder/src/Form/LayoutBuilderEntityViewDisplayForm.php \Drupal\layout_builder\Form\LayoutBuilderEntityViewDisplayForm::buildExtraFieldRow()
  3. 11.x core/modules/layout_builder/src/Form/LayoutBuilderEntityViewDisplayForm.php \Drupal\layout_builder\Form\LayoutBuilderEntityViewDisplayForm::buildExtraFieldRow()

Overrides EntityViewDisplayEditForm::buildExtraFieldRow

File

core/modules/layout_builder/src/Form/LayoutBuilderEntityViewDisplayForm.php, line 230

Class

LayoutBuilderEntityViewDisplayForm
Edit form for the LayoutBuilderEntityViewDisplay entity type.

Namespace

Drupal\layout_builder\Form

Code

protected function buildExtraFieldRow($field_id, $extra_field) {
    if ($this->entity
        ->isLayoutBuilderEnabled()) {
        return [];
    }
    return parent::buildExtraFieldRow($field_id, $extra_field);
}

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