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

Breadcrumb

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

function ResponseHasCookie::toString

Overrides SelfDescribing::toString

1 call to ResponseHasCookie::toString()
ResponseHasCookie::failureDescription in vendor/symfony/http-foundation/Test/Constraint/ResponseHasCookie.php

File

vendor/symfony/http-foundation/Test/Constraint/ResponseHasCookie.php, line 27

Class

ResponseHasCookie

Namespace

Symfony\Component\HttpFoundation\Test\Constraint

Code

public function toString() : string {
    $str = \sprintf('has cookie "%s"', $this->name);
    if ('/' !== $this->path) {
        $str .= \sprintf(' with path "%s"', $this->path);
    }
    if ($this->domain) {
        $str .= \sprintf(' for domain "%s"', $this->domain);
    }
    return $str;
}

API Navigation

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