function FormStateInterface::setSubmitHandlers
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setSubmitHandlers()
- 10 core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setSubmitHandlers()
- 11.x core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setSubmitHandlers()
Sets the submit handlers.
Parameters
array $submit_handlers: An array of submit handlers.
Return value
$this
2 methods override FormStateInterface::setSubmitHandlers()
- FormState::setSubmitHandlers in core/
lib/ Drupal/ Core/ Form/ FormState.php - Sets the submit handlers.
- FormStateDecoratorBase::setSubmitHandlers in core/
lib/ Drupal/ Core/ Form/ FormStateDecoratorBase.php - Sets the submit handlers.
File
-
core/
lib/ Drupal/ Core/ Form/ FormStateInterface.php, line 929
Class
- FormStateInterface
- Provides an interface for an object containing the current state of a form.
Namespace
Drupal\Core\FormCode
public function setSubmitHandlers(array $submit_handlers);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.