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

Breadcrumb

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

function Store::load

Loads data for the given key.

1 call to Store::load()
Store::getMetadata in vendor/symfony/http-kernel/HttpCache/Store.php
Gets all data associated with the given key.

File

vendor/symfony/http-kernel/HttpCache/Store.php, line 353

Class

Store
Store implements all the logic for storing cache metadata (Request and Response headers).

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

private function load(string $key) : ?string {
    $path = $this->getPath($key);
    return is_file($path) && false !== ($contents = @file_get_contents($path)) ? $contents : null;
}

API Navigation

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