public function FlexiformEntityFormDisplay::getComponentPlugin in Flexiform 8
Get the component plugin.
Return value
\Drupal\flexiform\FormComponent\FormComponentInterface
4 calls to FlexiformEntityFormDisplay::getComponentPlugin()
- FlexiformEntityFormDisplay::buildAdvancedForm in src/
FlexiformEntityFormDisplay.php - Build standalone form.
- FlexiformEntityFormDisplay::extractFormValues in src/
FlexiformEntityFormDisplay.php - Extracts field values from the submitted widget values into the entity.
- FlexiformEntityFormDisplay::formSubmitComponents in src/
FlexiformEntityFormDisplay.php - FlexiformEntityFormDisplay::formValidateComponents in src/
FlexiformEntityFormDisplay.php
File
- src/
FlexiformEntityFormDisplay.php, line 229
Class
- FlexiformEntityFormDisplay
- Defines a class to extend EntityFormDisplays.
Namespace
Drupal\flexiformCode
public function getComponentPlugin($name, $options, FlexiformFormEntityManager $form_entity_manager) {
$plugin_id = !empty($options['component_type']) ? $options['component_type'] : (empty($options['type']) ? 'extra_field' : 'field_widget');
return $this
->getComponentTypePlugin($plugin_id, $form_entity_manager)
->getComponent($name, $options)
->setFormEntityManager($form_entity_manager);
}