function DrupalKernel::getCachedContainerDefinition

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getCachedContainerDefinition()
  2. 8.9.x core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getCachedContainerDefinition()
  3. 10 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getCachedContainerDefinition()

Overrides DrupalKernelInterface::getCachedContainerDefinition

1 call to DrupalKernel::getCachedContainerDefinition()
DrupalKernel::initializeContainer in core/lib/Drupal/Core/DrupalKernel.php
Initializes the service container.

File

core/lib/Drupal/Core/DrupalKernel.php, line 546

Class

DrupalKernel
The DrupalKernel class is the core of Drupal itself.

Namespace

Drupal\Core

Code

public function getCachedContainerDefinition() {
    $cache = $this->bootstrapContainer
        ->get('cache.container')
        ->get($this->getContainerCacheKey());
    if ($cache) {
        return $cache->data;
    }
    return NULL;
}

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