You are here

public function FormState::setSubmitHandlers in Drupal 9

Same name and namespace in other branches
  1. 8 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 742

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;
}