FlashBagInterface
interface FlashBagInterface implements SessionBagInterface
FlashBagInterface.
Methods
add(string $type, mixed $message)
Adds a flash message for type.
set(string $type, string|array $message)
Registers a message for a given type.
array
peek(string $type, array $default = array())
Gets flash messages for a given type.
array
peekAll()
Gets all flash messages.
array
get(string $type, array $default = array())
Gets and clears flash from the stack.
array
all()
Gets and clears flashes from the stack.
setAll(array $messages)
Sets all flash messages.
bool
has(string $type)
Has flash messages for a given type?
array
keys()
Returns a list of all defined types.