You are here

protected function ExtraFieldComponentType::getExtraField in Flexiform 8

Get extra field.

2 calls to ExtraFieldComponentType::getExtraField()
ExtraFieldComponentType::buildComponentRow in src/Plugin/FormComponentType/ExtraFieldComponentType.php
Build a component row for a component of this type.
ExtraFieldComponentType::getComponent in src/Plugin/FormComponentType/ExtraFieldComponentType.php
Get a component object.

File

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

Class

ExtraFieldComponentType
Plugin for extra field components.

Namespace

Drupal\flexiform\Plugin\FormComponentType

Code

protected function getExtraField($component_name) {
  $extra_fields = $this
    ->getExtraFields();
  return isset($extra_fields[$component_name]) ? $extra_fields[$component_name] : [];
}