Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ResponseHeaderLocationSame.php

function ResponseHeaderLocationSame::matches

Overrides Constraint::matches

File

vendor/symfony/http-foundation/Test/Constraint/ResponseHeaderLocationSame.php, line 29

Class

ResponseHeaderLocationSame

Namespace

Symfony\Component\HttpFoundation\Test\Constraint

Code

protected function matches($other) : bool {
    if (!$other instanceof Response) {
        return false;
    }
    $location = $other->headers
        ->get('Location');
    if (null === $location) {
        return false;
    }
    return $this->toFullUrl($this->expectedValue) === $this->toFullUrl($location);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal