You are here

public function FieldWidgetComponentType::componentRows in Flexiform 8

Overrides FormComponentTypeBase::componentRows

File

src/Plugin/FormComponentType/FieldWidgetComponentType.php, line 149

Class

FieldWidgetComponentType
Plugin for field widget component types.

Namespace

Drupal\flexiform\Plugin\FormComponentType

Code

public function componentRows(EntityDisplayFormBase $form_object, array $form, FormStateInterface $form_state) {
  $rows = [];
  foreach ($this
    ->getFieldDefinitions() as $component_name => $field_definition) {
    if ($field_definition
      ->isDisplayConfigurable('form')) {
      $rows[$component_name] = $this
        ->buildComponentRow($form_object, $component_name, $form, $form_state);
    }
  }
  return $rows;
}