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

Breadcrumb

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

function BrowserCookieValueSame::matches

Parameters

AbstractBrowser $browser:

Overrides Constraint::matches

File

vendor/symfony/browser-kit/Test/Constraint/BrowserCookieValueSame.php, line 45

Class

BrowserCookieValueSame

Namespace

Symfony\Component\BrowserKit\Test\Constraint

Code

protected function matches($browser) : bool {
    $cookie = $browser->getCookieJar()
        ->get($this->name, $this->path, $this->domain);
    if (!$cookie) {
        return false;
    }
    return $this->value === ($this->raw ? $cookie->getRawValue() : $cookie->getValue());
}

API Navigation

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