You are here

public function FlashBag::set in Zircon Profile 8

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

Registers a message for a given type.

Parameters

string $type:

string|array $message:

Overrides FlashBagInterface::set

File

vendor/symfony/http-foundation/Session/Flash/FlashBag.php, line 124

Class

FlashBag
FlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

public function set($type, $messages) {
  $this->flashes[$type] = (array) $messages;
}