CacheDecoratorInterface.php

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php
  2. 8.9.x core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php
  3. 11.x core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php

Namespace

Drupal\Core\CacheDecorator

File

core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php

View source
<?php

namespace Drupal\Core\CacheDecorator;

@trigger_error('The ' . __NAMESPACE__ . '\\CacheDecoratorInterface is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3398182', E_USER_DEPRECATED);

/**
 * Defines an interface for cache decorator implementations.
 *
 * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0.
 *  There is no replacement.
 *
 * @see https://www.drupal.org/node/3398182
 */
interface CacheDecoratorInterface {
    
    /**
     * Specify the key to use when writing the cache.
     */
    public function setCacheKey($key);
    
    /**
     * Write the cache.
     */
    public function writeCache();

}

Interfaces

Title Deprecated Summary
CacheDecoratorInterface

in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement.

Defines an interface for cache decorator implementations.

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