You are here

public function AutoExpireFlashBag::add in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php \Symfony\Component\HttpFoundation\Session\Flash\AutoExpireFlashBag::add()

Adds a flash message for type.

Parameters

string $type:

string $message:

Overrides FlashBagInterface::add

File

vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php, line 77

Class

AutoExpireFlashBag
AutoExpireFlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

public function add($type, $message) {
  $this->flashes['new'][$type][] = $message;
}