function BackendChain::__construct

Constructs a new backend chain service instance.

Parameters

string|null $bin: (deprecated) The cache bin for which the object is created. The $bin parameter is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0.

See also

https://www.drupal.org/node/3061125

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 __construct($bin = NULL) {
    if ($bin) {
        @trigger_error('The $bin parameter is deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Omit the first parameter. See https://www.drupal.org/node/3061125', E_USER_DEPRECATED);
    }
}

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