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

Breadcrumb

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

function MarshallingSessionHandler::write

File

vendor/symfony/http-foundation/Session/Storage/Handler/MarshallingSessionHandler.php, line 52

Class

MarshallingSessionHandler
@author Ahmed TAILOULOUTE <ahmed.tailouloute@gmail.com>

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Handler

Code

public function write(string $sessionId, string $data) : bool {
    $failed = [];
    $marshalledData = $this->marshaller
        ->marshall([
        'data' => $data,
    ], $failed);
    if (isset($failed['data'])) {
        return false;
    }
    return $this->handler
        ->write($sessionId, $marshalledData['data']);
}

API Navigation

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