You are here

public function NullBackendFactory::get in Drupal 8

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

Gets a cache backend class for a given cache bin.

Parameters

string $bin: The cache bin for which a cache backend object should be returned.

Return value

\Drupal\Core\Cache\CacheBackendInterface The cache backend object associated with the specified bin.

Overrides CacheFactoryInterface::get

File

core/lib/Drupal/Core/Cache/NullBackendFactory.php, line 10

Class

NullBackendFactory

Namespace

Drupal\Core\Cache

Code

public function get($bin) {
  return new NullBackend($bin);
}