function FormStateInterface::setIgnoreDestination

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::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

2 methods override FormStateInterface::setIgnoreDestination()
FormState::setIgnoreDestination in core/lib/Drupal/Core/Form/FormState.php
Determines whether the redirect respects the destination query parameter.
FormStateDecoratorBase::setIgnoreDestination in core/lib/Drupal/Core/Form/FormStateDecoratorBase.php
Determines whether the redirect respects the destination query parameter.

File

core/lib/Drupal/Core/Form/FormStateInterface.php, line 170

Class

FormStateInterface
Provides an interface for an object containing the current state of a form.

Namespace

Drupal\Core\Form

Code

public function setIgnoreDestination(bool $status = TRUE);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.