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

Breadcrumb

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

function AbstractSurrogate::generateBodyEvalBoundary

2 calls to AbstractSurrogate::generateBodyEvalBoundary()
Esi::process in vendor/symfony/http-kernel/HttpCache/Esi.php
Replaces a Response Surrogate tags with the included resource content.
Ssi::process in vendor/symfony/http-kernel/HttpCache/Ssi.php
Replaces a Response Surrogate tags with the included resource content.

File

vendor/symfony/http-kernel/HttpCache/AbstractSurrogate.php, line 117

Class

AbstractSurrogate
Abstract class implementing Surrogate capabilities to Request and Response instances.

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

protected static function generateBodyEvalBoundary() : string {
    static $cookie;
    $cookie = hash('xxh128', $cookie ?? ($cookie = random_bytes(16)), true);
    $boundary = base64_encode($cookie);
    \assert(HttpCache::BODY_EVAL_BOUNDARY_LENGTH === \strlen($boundary));
    return $boundary;
}

API Navigation

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