function FormState::setIgnoreDestination
Determines whether the redirect respects the destination query parameter.
Parameters
bool $status: (optional) TRUE if the redirect should take precedence over the destination query parameter. FALSE if not. Defaults to TRUE.
Return value
$this
Overrides FormStateInterface::setIgnoreDestination
File
-
core/
lib/ Drupal/ Core/ Form/ FormState.php, line 1085
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\FormCode
public function setIgnoreDestination(bool $status = TRUE) {
$this->ignoreDestination = $status;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.