interface FormElementInterface in Flexiform 8
Provides an interface for form element plugins.
Hierarchy
- interface \Drupal\flexiform\FormElement\FormElementInterface
Expanded class hierarchy of FormElementInterface
All classes that implement FormElementInterface
File
- src/
FormElement/ FormElementInterface.php, line 10
Namespace
Drupal\flexiform\FormElementView source
interface FormElementInterface {
/**
* Build the form element.
*/
public function form(array $form, FormStateInterface $form_state);
/**
* Validate the form.
*/
public function formValidate(array $form, FormStateInterface $form_state);
/**
* Submit the form.
*/
public function formSubmit(array $form, FormStateInterface $form_state);
/**
* Build entities.
*/
public function buildEntities(array $form, FormStateInterface $form_state);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FormElementInterface:: |
public | function | Build entities. | |
FormElementInterface:: |
public | function | Build the form element. | 1 |
FormElementInterface:: |
public | function | Submit the form. | |
FormElementInterface:: |
public | function | Validate the form. |