You are here

public function FormState::setSubmitted in Drupal 8

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

Sets that the form has been submitted.

Return value

$this

Overrides FormStateInterface::setSubmitted

File

core/lib/Drupal/Core/Form/FormState.php, line 757

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

public function setSubmitted() {
  $this->submitted = TRUE;
  return $this;
}