interface CacheTagsChecksumPreloadInterface

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Cache/CacheTagsChecksumPreloadInterface.php \Drupal\Core\Cache\CacheTagsChecksumPreloadInterface

Registers cache tags for preloading.

Implementations of \Drupal\Core\Cache\CacheTagsChecksumInterface that support this interface will fetch registered cache tags on the next lookup.

Hierarchy

Expanded class hierarchy of CacheTagsChecksumPreloadInterface

All classes that implement CacheTagsChecksumPreloadInterface

See also

\Drupal\Core\Cache\EventSubscriber\CacheTagPreloadSubscriber

2 files declare their use of CacheTagsChecksumPreloadInterface
CacheTagPreloadSubscriber.php in core/lib/Drupal/Core/Cache/EventSubscriber/CacheTagPreloadSubscriber.php
CacheTagsChecksumDecorator.php in core/modules/system/tests/modules/performance_test/src/Cache/CacheTagsChecksumDecorator.php

File

core/lib/Drupal/Core/Cache/CacheTagsChecksumPreloadInterface.php, line 14

Namespace

Drupal\Core\Cache
View source
interface CacheTagsChecksumPreloadInterface {
  
  /**
   * Register cache tags for preloading.
   *
   * @param array $cache_tags
   *   List of cache tags to load.
   */
  public function registerCacheTagsForPreload(array $cache_tags) : void;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
CacheTagsChecksumPreloadInterface::registerCacheTagsForPreload public function Register cache tags for preloading. 1

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.