You are here

public function Response::isRedirection in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Response.php \Symfony\Component\HttpFoundation\Response::isRedirection()

Is the response a redirect?

Return value

bool

File

vendor/symfony/http-foundation/Response.php, line 1058

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function isRedirection() {
  return $this->statusCode >= 300 && $this->statusCode < 400;
}