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

Breadcrumb

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

function Session::isEmpty

@internal

File

vendor/symfony/http-foundation/Session/Session.php, line 128

Class

Session
@author Fabien Potencier <fabien@symfony.com> @author Drak <drak@zikula.org>

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function isEmpty() : bool {
    if ($this->isStarted()) {
        ++$this->usageIndex;
        if ($this->usageReporter && 0 <= $this->usageIndex) {
            ($this->usageReporter)();
        }
    }
    foreach ($this->data as &$data) {
        if ($data) {
            return false;
        }
    }
    return true;
}

API Navigation

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