public function Cookie::isCleared

Whether this cookie is about to be cleared

@api

Return value

Boolean

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Cookie.php, line 206

Class

Cookie
Represents a cookie

Namespace

Symfony\Component\HttpFoundation

Code

public function isCleared() {
  return $this->expire < time();
}