function PhpBackendFactory::get

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Cache/PhpBackendFactory.php \Drupal\Core\Cache\PhpBackendFactory::get()
  2. 8.9.x core/lib/Drupal/Core/Cache/PhpBackendFactory.php \Drupal\Core\Cache\PhpBackendFactory::get()
  3. 10 core/lib/Drupal/Core/Cache/PhpBackendFactory.php \Drupal\Core\Cache\PhpBackendFactory::get()

Gets PhpBackend for the specified cache bin.

Parameters

$bin: The cache bin for which the object is created.

Return value

\Drupal\Core\Cache\PhpBackend The cache backend object for the specified cache bin.

Overrides CacheFactoryInterface::get

File

core/lib/Drupal/Core/Cache/PhpBackendFactory.php, line 37

Class

PhpBackendFactory

Namespace

Drupal\Core\Cache

Code

public function get($bin) {
    return new PhpBackend($bin, $this->checksumProvider, $this->time);
}

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