You are here

public function FormState::setSubmitHandlers in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::setSubmitHandlers()

Sets the submit handlers.

Parameters

array $submit_handlers: An array of submit handlers.

Return value

$this

Overrides FormStateInterface::setSubmitHandlers

File

core/lib/Drupal/Core/Form/FormState.php, line 745
Contains \Drupal\Core\Form\FormState.

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

public function setSubmitHandlers(array $submit_handlers) {
  $this->submit_handlers = $submit_handlers;
  return $this;
}