Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FlashBagInterface.php

function FlashBagInterface::peek

Gets flash messages for a given type.

Parameters

string $type Message category type:

array $default Default value if $type does not exist:

2 methods override FlashBagInterface::peek()
AutoExpireFlashBag::peek in vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php
Gets flash messages for a given type.
FlashBag::peek in vendor/symfony/http-foundation/Session/Flash/FlashBag.php
Gets flash messages for a given type.

File

vendor/symfony/http-foundation/Session/Flash/FlashBagInterface.php, line 39

Class

FlashBagInterface
FlashBagInterface.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

public function peek(string $type, array $default = []) : array;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal