You are here

public function ExtraFieldComponentType::componentRows in Flexiform 8

Overrides FormComponentTypeBase::componentRows

File

src/Plugin/FormComponentType/ExtraFieldComponentType.php, line 65

Class

ExtraFieldComponentType
Plugin for extra field components.

Namespace

Drupal\flexiform\Plugin\FormComponentType

Code

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