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

Breadcrumb

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

function FlashBagInterface::add

Adds a flash message for the given type.

2 methods override FlashBagInterface::add()
AutoExpireFlashBag::add in vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php
Adds a flash message for the given type.
FlashBag::add in vendor/symfony/http-foundation/Session/Flash/FlashBag.php
Adds a flash message for the given type.

File

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

Class

FlashBagInterface
FlashBagInterface.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

public function add(string $type, mixed $message) : void;

API Navigation

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