function NullBackend::get

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

Overrides CacheBackendInterface::get

File

core/lib/Drupal/Core/Cache/NullBackend.php, line 31

Class

NullBackend
Defines a stub cache implementation.

Namespace

Drupal\Core\Cache

Code

public function get($cid, $allow_invalid = FALSE) {
    return FALSE;
}

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