interface IFormManager

Manages validation and submission of a form.

UML: IFormManager

@author darrenkelly

Hierarchy

Expanded class hierarchy of IFormManager

All classes that implement IFormManager

1 file declares its use of IFormManager
IDemoOfForms.php in lib/Drupal/ooe/Demo/Form/IDemoOfForms.php
IDemoOfForms

File

lib/Drupal/ooe/Form/IFormManager.php, line 17
IFormManager

Namespace

Drupal\ooe\Form
View source
interface IFormManager {

  /**
   * Gets a Drupal form.
   *
   * @param array $form
   *   A Drupal form array.
   * @param array $form_submit
   *   A Drupal form submit array.
   *
   * @return array
   *   A Drupal form array.
   */
  public function build(array $form, array &$form_submit);

  /**
   * Validates a form.
   *
   * @param array $form
   *   A Drupal form array.
   * @param array $form_state
   *   A Drupal form state array.
   */
  public function validate(array $form, array &$form_state);

  /**
   * Submits a form.
   *
   * @param array $form
   *   A Drupal form array.
   * @param array $form_state
   *   A Drupal form state array.
   */
  public function submit(array $form, array &$form_state);
}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
IFormManager::build public function Gets a Drupal form.
IFormManager::submit public function Submits a form.
IFormManager::validate public function Validates a form.