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

Breadcrumb

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

function SessionBagInterface::clear

Clears out data from bag.

Return value

mixed Whatever data was contained

5 methods override SessionBagInterface::clear()
AttributeBag::clear in vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php
Clears out data from bag.
AutoExpireFlashBag::clear in vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php
Clears out data from bag.
FlashBag::clear in vendor/symfony/http-foundation/Session/Flash/FlashBag.php
Clears out data from bag.
MetadataBag::clear in vendor/symfony/http-foundation/Session/Storage/MetadataBag.php
Clears out data from bag.
SessionBagProxy::clear in vendor/symfony/http-foundation/Session/SessionBagProxy.php
Clears out data from bag.

File

vendor/symfony/http-foundation/Session/SessionBagInterface.php, line 41

Class

SessionBagInterface
Session Bag store.

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function clear() : mixed;

API Navigation

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