function FlashBag::has
Overrides FlashBagInterface::has
2 calls to FlashBag::has()
- FlashBag::get in vendor/
symfony/ http-foundation/ Session/ Flash/ FlashBag.php - Gets and clears flash from the stack.
- FlashBag::peek in vendor/
symfony/ http-foundation/ Session/ Flash/ FlashBag.php - Gets flash messages for a given type.
File
-
vendor/
symfony/ http-foundation/ Session/ Flash/ FlashBag.php, line 93
Class
- FlashBag
- FlashBag flash message container.
Namespace
Symfony\Component\HttpFoundation\Session\FlashCode
public function has(string $type) : bool {
return \array_key_exists($type, $this->flashes) && $this->flashes[$type];
}