FormState::disableRedirect

public FormState::disableRedirect($no_redirect = TRUE)

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\Form

Code

public function disableRedirect($no_redirect = TRUE) {
  $this->no_redirect = (bool) $no_redirect;
  return $this;
}
doc_Drupal
2016-10-29 09:15:54
Comments
Leave a Comment

Please login to continue.