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

Breadcrumb

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

function AutoExpireFlashBag::has

Overrides FlashBagInterface::has

2 calls to AutoExpireFlashBag::has()
AutoExpireFlashBag::get in vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php
Gets and clears flash from the stack.
AutoExpireFlashBag::peek in vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php
Gets flash messages for a given type.

File

vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php, line 102

Class

AutoExpireFlashBag
AutoExpireFlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

public function has(string $type) : bool {
    return \array_key_exists($type, $this->flashes['display']) && $this->flashes['display'][$type];
}

API Navigation

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