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

Breadcrumb

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

function CookieJarInterface::setCookie

Sets a cookie in the cookie jar.

Parameters

SetCookie $cookie Cookie to set.:

Return value

bool Returns true on success or false on failure

1 method overrides CookieJarInterface::setCookie()
CookieJar::setCookie in vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php
Sets a cookie in the cookie jar.

File

vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php, line 49

Class

CookieJarInterface
Stores HTTP cookies.

Namespace

GuzzleHttp\Cookie

Code

public function setCookie(SetCookie $cookie) : bool;

API Navigation

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