public function CustomTextComponentType::componentRows in Flexiform 8
Overrides FormComponentTypeBase::componentRows
File
- src/
Plugin/ FormComponentType/ CustomTextComponentType.php, line 25
Class
- CustomTextComponentType
- Plugin for field widget component types.
Namespace
Drupal\flexiform\Plugin\FormComponentTypeCode
public function componentRows(EntityDisplayFormBase $form_object, array $form, FormStateInterface $form_state) {
$rows = [];
foreach ($this
->getFormDisplay()
->getComponents() as $component_name => $options) {
if (isset($options['component_type']) && $options['component_type'] == $this
->getPluginId()) {
$rows[$component_name] = $this
->buildComponentRow($form_object, $component_name, $form, $form_state);
}
}
return $rows;
}