public function FlashBag::get in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Session/Flash/FlashBag.php \Symfony\Component\HttpFoundation\Session\Flash\FlashBag::get()
Gets and clears flash from the stack.
Parameters
string $type:
array $default Default value if $type does not exist.:
Return value
array
Overrides FlashBagInterface::get
File
- vendor/
symfony/ http-foundation/ Session/ Flash/ FlashBag.php, line 97
Class
- FlashBag
- FlashBag flash message container.
Namespace
Symfony\Component\HttpFoundation\Session\FlashCode
public function get($type, array $default = array()) {
if (!$this
->has($type)) {
return $default;
}
$return = $this->flashes[$type];
unset($this->flashes[$type]);
return $return;
}