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

Breadcrumb

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

function BackendChain::appendBackend

Appends a cache backend to the cache chain.

Parameters

CacheBackendInterface $backend: The cache backend to be appended to the cache chain.

Return value

$this The called object.

File

core/lib/Drupal/Core/Cache/BackendChain.php, line 41

Class

BackendChain
Defines a chained cache implementation for combining multiple cache backends.

Namespace

Drupal\Core\Cache

Code

public function appendBackend(CacheBackendInterface $backend) {
    $this->backends[] = $backend;
    return $this;
}

API Navigation

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