You are here

public function UpdateCacheBackendFactory::get in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Update/UpdateCacheBackendFactory.php \Drupal\Core\Update\UpdateCacheBackendFactory::get()
  2. 9 core/lib/Drupal/Core/Update/UpdateCacheBackendFactory.php \Drupal\Core\Update\UpdateCacheBackendFactory::get()

File

core/lib/Drupal/Core/Update/UpdateCacheBackendFactory.php, line 44

Class

UpdateCacheBackendFactory
Cache factory implementation for use during Drupal database updates.

Namespace

Drupal\Core\Update

Code

public function get($bin) {
  if (!isset($this->bins[$bin])) {
    $this->bins[$bin] = new UpdateBackend($this->cacheFactory
      ->get($bin), $bin);
  }
  return $this->bins[$bin];
}