You are here

interface FormComponentWithValidateInterface in Flexiform 8

Interface for form components that contain their own validation logic.

Hierarchy

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

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
FormComponentWithValidateInterface::formValidate public function Perform validation logic. 1