CacheTagsChecksumPreloadInterface.php

Same filename and directory in other branches
  1. 11.x core/lib/Drupal/Core/Cache/CacheTagsChecksumPreloadInterface.php

Namespace

Drupal\Core\Cache

File

core/lib/Drupal/Core/Cache/CacheTagsChecksumPreloadInterface.php

View source
<?php

namespace Drupal\Core\Cache;


/**
 * Registers cache tags for preloading.
 *
 * Implementations of \Drupal\Core\Cache\CacheTagsChecksumInterface that
 * support this interface will fetch registered cache tags on the next
 * lookup.
 *
 * @see \Drupal\Core\Cache\EventSubscriber\CacheTagPreloadSubscriber
 */
interface CacheTagsChecksumPreloadInterface {
  
  /**
   * Register cache tags for preloading.
   *
   * @param array $cache_tags
   *   List of cache tags to load.
   */
  public function registerCacheTagsForPreload(array $cache_tags) : void;

}

Interfaces

Title Deprecated Summary
CacheTagsChecksumPreloadInterface Registers cache tags for preloading.

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