public function FlashBag::set

Registers a message for a given type.

Parameters

string $type:

string $message:

Overrides FlashBagInterface::set

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Flash/FlashBag.php, line 122

Class

FlashBag
FlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

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