You are here

interface FormComponentWithSubmitInterface in Flexiform 8

Interface for form components that contain their own submission logic.

Hierarchy

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\FormComponent
View 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

Namesort descending Modifiers Type Description Overrides
FormComponentInterface::extractFormValues public function Extract the form values. 4
FormComponentInterface::getAdminLabel public function Get the admin label for the component. 1
FormComponentInterface::render public function Render the element. 4
FormComponentInterface::settingsForm public function Get the settings form. 1
FormComponentInterface::settingsSummary public function Get the settings summary. 1
FormComponentWithSubmitInterface::formSubmit public function Perform submission logic. 1