public function Session::count

Returns the number of attributes.

Return value

int The number of attributes

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Session.php, line 156

Class

Session
Session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function count() {
  return count($this->storage
    ->getBag($this->attributeName)
    ->all());
}