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