public function FlashBag::has

Has flash messages for a given type?

Parameters

string $type:

Return value

boolean

Overrides FlashBagInterface::has

2 calls to FlashBag::has()
FlashBag::get in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Flash/FlashBag.php
Gets and clears flash from the stack.
FlashBag::peek in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Flash/FlashBag.php
Gets flash messages for a given type.

File

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

Class

FlashBag
FlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

public function has($type) {
  return array_key_exists($type, $this->flashes) && $this->flashes[$type];
}