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

Breadcrumb

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

function SessionBagProxy::isEmpty

File

vendor/symfony/http-foundation/Session/SessionBagProxy.php, line 47

Class

SessionBagProxy
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function isEmpty() : bool {
    if (!isset($this->data[$this->bag
        ->getStorageKey()])) {
        return true;
    }
    ++$this->usageIndex;
    if ($this->usageReporter && 0 <= $this->usageIndex) {
        ($this->usageReporter)();
    }
    return empty($this->data[$this->bag
        ->getStorageKey()]);
}

API Navigation

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