public function FormState::disableRedirect in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::disableRedirect()
- 10 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::disableRedirect()
Prevents the form from redirecting.
Parameters
bool $no_redirect: If TRUE, the form will not redirect.
Return value
$this
Overrides FormStateInterface::disableRedirect
File
- core/
lib/ Drupal/ Core/ Form/ FormState.php, line 642
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\FormCode
public function disableRedirect($no_redirect = TRUE) {
$this->no_redirect = (bool) $no_redirect;
return $this;
}