You are here

protected function ExtraFieldComponentType::getExtraFields in Flexiform 8

Get extra fields.

2 calls to ExtraFieldComponentType::getExtraFields()
ExtraFieldComponentType::componentRows in src/Plugin/FormComponentType/ExtraFieldComponentType.php
ExtraFieldComponentType::getExtraField in src/Plugin/FormComponentType/ExtraFieldComponentType.php
Get extra field.

File

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

Class

ExtraFieldComponentType
Plugin for extra field components.

Namespace

Drupal\flexiform\Plugin\FormComponentType

Code

protected function getExtraFields() {
  if ($form_entity = $this
    ->getFormEntityManager()
    ->getFormEntity('')) {
    $extra_fields = $this->entityFieldManager
      ->getExtraFields($form_entity
      ->getEntityType(), $form_entity
      ->getBundle());
    return isset($extra_fields['form']) ? $extra_fields['form'] : [];
  }
  return [];
}