You are here

public function DrupalKernel::getCachedContainerDefinition in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::getCachedContainerDefinition()

Returns the cached container definition - if any.

This also allows inspecting a built container for debugging purposes.

Return value

array|NULL The cached container definition or NULL if not found in cache.

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 492
Contains \Drupal\Core\DrupalKernel.

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;
}