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

Breadcrumb

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

function FlashBag::peek

Overrides FlashBagInterface::peek

File

vendor/symfony/http-foundation/Session/Flash/FlashBag.php, line 52

Class

FlashBag
FlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

public function peek(string $type, array $default = []) : array {
    return $this->has($type) ? $this->flashes[$type] : $default;
}

API Navigation

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