public function AutoExpireFlashBag::has

Has flash messages for a given type?

Parameters

string $type:

Return value

boolean

Overrides FlashBagInterface::has

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

File

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

Class

AutoExpireFlashBag
AutoExpireFlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

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