You are here

public function FormStateDecoratorBase::setValidateHandlers in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::setValidateHandlers()

Sets the validate handlers.

Parameters

array $validate_handlers: An array of validate handlers.

Return value

$this

Overrides FormStateInterface::setValidateHandlers

File

core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 386

Class

FormStateDecoratorBase
Decorates another form state.

Namespace

Drupal\Core\Form

Code

public function setValidateHandlers(array $validate_handlers) {
  $this->decoratedFormState
    ->setValidateHandlers($validate_handlers);
  return $this;
}