Has flash messages for a given type?
Parameters
string $type:
Return value
boolean
Overrides FlashBagInterface::has
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];
}