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

Breadcrumb

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

function SetCookie::isExpired

Check if the cookie is expired.

File

vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php, line 445

Class

SetCookie
Set-Cookie object

Namespace

GuzzleHttp\Cookie

Code

public function isExpired() : bool {
    return $this->getExpires() !== null && \time() > $this->getExpires();
}

API Navigation

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