public function Session::getIterator

Returns an iterator for attributes.

Return value

\ArrayIterator An \ArrayIterator instance

File

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

Class

Session
Session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function getIterator() {
  return new \ArrayIterator($this->storage
    ->getBag($this->attributeName)
    ->all());
}