You are here

protected function LayoutBuilderEntityViewDisplayForm::buildFieldRow 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::buildFieldRow()
  2. 9 core/modules/layout_builder/src/Form/LayoutBuilderEntityViewDisplayForm.php \Drupal\layout_builder\Form\LayoutBuilderEntityViewDisplayForm::buildFieldRow()

File

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

Class

LayoutBuilderEntityViewDisplayForm
Edit form for the LayoutBuilderEntityViewDisplay entity type.

Namespace

Drupal\layout_builder\Form

Code

protected function buildFieldRow(FieldDefinitionInterface $field_definition, array $form, FormStateInterface $form_state) {
  if ($this->entity
    ->isLayoutBuilderEnabled()) {
    return [];
  }
  return parent::buildFieldRow($field_definition, $form, $form_state);
}