function KernelTestDrupalKernel::getContainerFromCacheIfCacheable
Gets the cached container definition if the cache may be used.
Return value
array|null The cached container definition, or NULL if the cache must not be used or holds no definition.
Overrides DrupalKernel::getContainerFromCacheIfCacheable
File
-
core/
lib/ Drupal/ Core/ Test/ KernelTestDrupalKernel.php, line 68
Class
- KernelTestDrupalKernel
- Subclass of DrupalKernel for kernel testing.
Namespace
Drupal\Core\TestCode
protected function getContainerFromCacheIfCacheable() : ?array {
if ($this->overrideUseCache) {
// Only override once.
$this->overrideUseCache = FALSE;
return $this->getCachedContainerDefinition();
}
return parent::getContainerFromCacheIfCacheable();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.