You are here

public function FormStateDecoratorBase::setProgrammed in Drupal 8

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

Sets that this form was submitted programmatically.

Parameters

bool $programmed: If TRUE, the form was submitted programmatically.

Return value

$this

Overrides FormStateInterface::setProgrammed

File

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

Class

FormStateDecoratorBase
Decorates another form state.

Namespace

Drupal\Core\Form

Code

public function setProgrammed($programmed = TRUE) {
  $this->decoratedFormState
    ->setProgrammed($programmed);
  return $this;
}