public function FlashBag::count

Returns the number of flashes.

Return value

int The number of flashes

File

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

Class

FlashBag
FlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

public function count() {
  return count($this->flashes);
}