public function FlashBagInterface::peek

Gets flash message for a given type.

Parameters

string $type Message category type.:

array $default Default value if $type doee not exist.:

Return value

string

2 methods override FlashBagInterface::peek()
AutoExpireFlashBag::peek in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Flash/AutoExpireFlashBag.php
Gets flash message for a given type.
FlashBag::peek in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Flash/FlashBag.php
Gets flash message for a given type.

File

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

Class

FlashBagInterface
FlashBagInterface.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

public function peek($type, array $default = array());