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

Breadcrumb

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

function ResponseCookieValueSame::matches

Parameters

Response $response:

Overrides Constraint::matches

File

vendor/symfony/http-foundation/Test/Constraint/ResponseCookieValueSame.php, line 44

Class

ResponseCookieValueSame

Namespace

Symfony\Component\HttpFoundation\Test\Constraint

Code

protected function matches($response) : bool {
    $cookie = $this->getCookie($response);
    if (!$cookie) {
        return false;
    }
    return $this->value === (string) $cookie->getValue();
}

API Navigation

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