You are here

interface FormElementInterface in Flexiform 8

Provides an interface for form element plugins.

Hierarchy

Expanded class hierarchy of FormElementInterface

All classes that implement FormElementInterface

File

src/FormElement/FormElementInterface.php, line 10

Namespace

Drupal\flexiform\FormElement
View 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

Namesort descending Modifiers Type Description Overrides
FormElementInterface::buildEntities public function Build entities.
FormElementInterface::form public function Build the form element. 1
FormElementInterface::formSubmit public function Submit the form.
FormElementInterface::formValidate public function Validate the form.