You are here

protected function LayoutBuilderEntityViewDisplayForm::buildExtraFieldRow in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Form/LayoutBuilderEntityViewDisplayForm.php \Drupal\layout_builder\Form\LayoutBuilderEntityViewDisplayForm::buildExtraFieldRow()
  2. 9 core/modules/layout_builder/src/Form/LayoutBuilderEntityViewDisplayForm.php \Drupal\layout_builder\Form\LayoutBuilderEntityViewDisplayForm::buildExtraFieldRow()

File

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

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