You are here

public function RedirectLoopException::__construct in Redirect 8

Formats a redirect loop exception message.

Parameters

string $path: The path that results in a redirect loop.

int $rid: The redirect ID that is involved in a loop.

File

src/Exception/RedirectLoopException.php, line 34

Class

RedirectLoopException
Exception for when a redirect loop is detected.

Namespace

Drupal\redirect\Exception

Code

public function __construct($path, $rid) {
  $message = new FormattableMarkup('Redirect loop identified at %path for redirect %rid', [
    '%path' => $path,
    '%rid' => $rid,
  ]);
  $this->path = $path;
  $this->rid = $rid;
  parent::__construct($message);
}