function PhpBackend::storage
Same name in other branches
- 9 core/lib/Drupal/Core/Cache/PhpBackend.php \Drupal\Core\Cache\PhpBackend::storage()
- 10 core/lib/Drupal/Core/Cache/PhpBackend.php \Drupal\Core\Cache\PhpBackend::storage()
- 11.x core/lib/Drupal/Core/Cache/PhpBackend.php \Drupal\Core\Cache\PhpBackend::storage()
Gets the PHP code storage object to use.
Return value
\Drupal\Component\PhpStorage\PhpStorageInterface
File
-
core/
lib/ Drupal/ Core/ Cache/ PhpBackend.php, line 253
Class
- PhpBackend
- Defines a PHP cache implementation.
Namespace
Drupal\Core\CacheCode
protected function storage() {
if (!isset($this->storage)) {
$this->storage = PhpStorageFactory::get($this->bin);
}
return $this->storage;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.