interface FormComponentWithSubmitInterface in Flexiform 8
Interface for form components that contain their own submission logic.
Hierarchy
- interface \Drupal\flexiform\FormComponent\FormComponentInterface
- interface \Drupal\flexiform\FormComponent\FormComponentWithSubmitInterface
Expanded class hierarchy of FormComponentWithSubmitInterface
All classes that implement FormComponentWithSubmitInterface
2 files declare their use of FormComponentWithSubmitInterface
- FlexiformEntityFormDisplay.php in src/
FlexiformEntityFormDisplay.php - FormElementComponent.php in src/
Plugin/ FormComponentType/ FormElementComponent.php
File
- src/
FormComponent/ FormComponentWithSubmitInterface.php, line 10
Namespace
Drupal\flexiform\FormComponentView source
interface FormComponentWithSubmitInterface extends FormComponentInterface {
/**
* Perform submission logic.
*
* @var array $form
* Form array
* @var \Drupal\Core\Form\FormStateInterface $form_state
*/
public function formSubmit(array $form, FormStateInterface $form_state);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FormComponentInterface:: |
public | function | Extract the form values. | 4 |
FormComponentInterface:: |
public | function | Get the admin label for the component. | 1 |
FormComponentInterface:: |
public | function | Render the element. | 4 |
FormComponentInterface:: |
public | function | Get the settings form. | 1 |
FormComponentInterface:: |
public | function | Get the settings summary. | 1 |
FormComponentWithSubmitInterface:: |
public | function | Perform submission logic. | 1 |