plus-8.x-4.x-dev/src/Core/Form/FormSubmitInterface.php
src/Core/Form/FormSubmitInterface.php
<?php namespace Drupal\plus\Core\Form; use Drupal\plus\Utility\Element; use Drupal\Core\Form\FormStateInterface; /** * Defines the interface for submitting an object oriented form alter. * * @ingroup plugins_form */ interface FormSubmitInterface { /** * Form submission handler. * * @param \Drupal\plus\Utility\Element $form * The Element object that comprises the form. * @param \Drupal\Core\Form\FormStateInterface $form_state * The current state of the form. */ public function formSubmit(Element $form, FormStateInterface $form_state); }