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

Breadcrumb

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

function Store::getMetadata

Gets all data associated with the given key.

Use this method only if you know what you are doing.

3 calls to Store::getMetadata()
Store::invalidate in vendor/symfony/http-kernel/HttpCache/Store.php
Invalidates all cache entries that match the request.
Store::lookup in vendor/symfony/http-kernel/HttpCache/Store.php
Locates a cached Response for the Request provided.
Store::write in vendor/symfony/http-kernel/HttpCache/Store.php
Writes a cache entry to the store for the given Request and Response.

File

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

Class

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

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

private function getMetadata(string $key) : array {
    if (!($entries = $this->load($key))) {
        return [];
    }
    return unserialize($entries) ?: [];
}

API Navigation

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