NullBackendFactory.php

Same filename and directory in other branches
  1. 11.x core/lib/Drupal/Core/Cache/NullBackendFactory.php
  2. 10 core/lib/Drupal/Core/Cache/NullBackendFactory.php
  3. 9 core/lib/Drupal/Core/Cache/NullBackendFactory.php
  4. 8.9.x core/lib/Drupal/Core/Cache/NullBackendFactory.php

Namespace

Drupal\Core\Cache

File

core/lib/Drupal/Core/Cache/NullBackendFactory.php

View source
<?php

namespace Drupal\Core\Cache;


/**
 * Defines a stub cache backend factory.
 */
class NullBackendFactory implements CacheFactoryInterface {
  
  /**
   * {@inheritdoc}
   */
  public function get($bin) {
    return new NullBackend($bin);
  }

}

Classes

Title Deprecated Summary
NullBackendFactory Defines a stub cache backend factory.

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