public function FormComponentTypeCreateableInterface::addComponentForm in Flexiform 8
Get a form for adding a component of this type.
Parameters
array $form: The part of the form array that should contain the component plugin settings.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
Return value
array A form array for setting the options of a component. Normally broken into settings and third_party_settings.
1 method overrides FormComponentTypeCreateableInterface::addComponentForm()
- FormComponentTypeCreateableBase::addComponentForm in src/
FormComponent/ FormComponentTypeCreateableBase.php - Get a form for adding a component of this type.
File
- src/
FormComponent/ FormComponentTypeCreateableInterface.php, line 28
Class
- FormComponentTypeCreateableInterface
- Interface for component types that are createable.
Namespace
Drupal\flexiform\FormComponentCode
public function addComponentForm(array $form, FormStateInterface $form_state);