public function AutoExpireFlashBag::set

Registers a message for a given type.

Parameters

string $type:

string|array $message:

Overrides FlashBagInterface::set

File

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

Class

AutoExpireFlashBag
AutoExpireFlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

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