You are here

protected function DrupalKernel::getContainerCacheKey in Zircon Profile 8

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

Returns the container cache key based on the environment.

Return value

string The cache key used for the service container.

2 calls to DrupalKernel::getContainerCacheKey()
DrupalKernel::cacheDrupalContainer in core/lib/Drupal/Core/DrupalKernel.php
Stores the container definition in a cache.
DrupalKernel::getCachedContainerDefinition in core/lib/Drupal/Core/DrupalKernel.php
Returns the cached container definition - if any.

File

core/lib/Drupal/Core/DrupalKernel.php, line 767
Contains \Drupal\Core\DrupalKernel.

Class

DrupalKernel
The DrupalKernel class is the core of Drupal itself.

Namespace

Drupal\Core

Code

protected function getContainerCacheKey() {
  $parts = array(
    'service_container',
    $this->environment,
    \Drupal::VERSION,
    Settings::get('deployment_identifier'),
  );
  return implode(':', $parts);
}