public function FlashBag::getIterator

Returns an iterator for flashes.

Return value

\ArrayIterator An \ArrayIterator instance

File

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

Class

FlashBag
FlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

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