Gets and clears flash from the stack.
string $type:
array $default Default value if $type does not exist.:
array
Overrides FlashBagInterface::get
public function get($type, array $default = array()) {
$return = $default;
if (!$this
->has($type)) {
return $return;
}
if (isset($this->flashes['display'][$type])) {
$return = $this->flashes['display'][$type];
unset($this->flashes['display'][$type]);
}
return $return;
}