public function FlashBag::add 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::add()
Adds a flash message for type.
Parameters
string $type:
string $message:
Overrides FlashBagInterface::add
File
- vendor/
symfony/ http-foundation/ Session/ Flash/ FlashBag.php, line 73
Class
- FlashBag
- FlashBag flash message container.
Namespace
Symfony\Component\HttpFoundation\Session\FlashCode
public function add($type, $message) {
$this->flashes[$type][] = $message;
}