You are here

public function AutoExpireFlashBag::has in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php \Symfony\Component\HttpFoundation\Session\Flash\AutoExpireFlashBag::has()

Has flash messages for a given type?

Parameters

string $type:

Return value

bool

Overrides FlashBagInterface::has

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

File

vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php, line 147

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];
}