interface FormComponentWithValidateInterface in Flexiform 8
Interface for form components that contain their own validation logic.
Hierarchy
- interface \Drupal\flexiform\FormComponent\FormComponentInterface
- interface \Drupal\flexiform\FormComponent\FormComponentWithValidateInterface
Expanded class hierarchy of FormComponentWithValidateInterface
All classes that implement FormComponentWithValidateInterface
2 files declare their use of FormComponentWithValidateInterface
- FlexiformEntityFormDisplay.php in src/
FlexiformEntityFormDisplay.php - FormElementComponent.php in src/
Plugin/ FormComponentType/ FormElementComponent.php
File
- src/
FormComponent/ FormComponentWithValidateInterface.php, line 10
Namespace
Drupal\flexiform\FormComponentView source
interface FormComponentWithValidateInterface extends FormComponentInterface {
/**
* Perform validation logic.
*
* @var array $form
* Form array
* @var \Drupal\Core\Form\FormStateInterface $form_state
*/
public function formValidate(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 |
FormComponentWithValidateInterface:: |
public | function | Perform validation logic. | 1 |