You are here

class NullBackendFactory in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/NullBackendFactory.php \Drupal\Core\Cache\NullBackendFactory

Hierarchy

Expanded class hierarchy of NullBackendFactory

2 string references to 'NullBackendFactory'
development.services.yml in sites/development.services.yml
sites/development.services.yml
development.services.yml in core/assets/scaffold/files/development.services.yml
core/assets/scaffold/files/development.services.yml
2 services use NullBackendFactory
cache.backend.null in sites/development.services.yml
Drupal\Core\Cache\NullBackendFactory
cache.backend.null in core/assets/scaffold/files/development.services.yml
Drupal\Core\Cache\NullBackendFactory

File

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

Namespace

Drupal\Core\Cache
View source
class NullBackendFactory implements CacheFactoryInterface {

  /**
   * {@inheritdoc}
   */
  public function get($bin) {
    return new NullBackend($bin);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
NullBackendFactory::get public function Gets a cache backend class for a given cache bin. Overrides CacheFactoryInterface::get