You are here

public function RenderCacheServiceProvider::alterContainerDefinition in Render cache 7.2

File

src/ServiceContainer/ServiceProvider/RenderCacheServiceProvider.php, line 95
Contains \Drupal\render_cache\ServiceContainer\ServiceProvider\RenderCacheServiceProvider

Class

RenderCacheServiceProvider
Provides render cache service definitions.

Namespace

Drupal\render_cache\ServiceContainer\ServiceProvider

Code

public function alterContainerDefinition(&$container_definition) {

  // Register cache contexts parameter in the container.
  $container_definition['parameters']['cache_contexts'] = array_keys($container_definition['tags']['cache.context']);
}