function RedirectResponseSubscriber::setIgnoreDestination

Same name in other branches
  1. 10 core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php \Drupal\Core\EventSubscriber\RedirectResponseSubscriber::setIgnoreDestination()

Set whether the redirect response will ignore the destination query param.

Parameters

bool $status: (optional) TRUE if the destination query parameter should be ignored. FALSE if not. Defaults to TRUE.

File

core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php, line 145

Class

RedirectResponseSubscriber
Allows manipulation of the response object when performing a redirect.

Namespace

Drupal\Core\EventSubscriber

Code

public function setIgnoreDestination($status = TRUE) {
    $this->ignoreDestination = $status;
}

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