You are here

public static function FileCacheFactory::setConfiguration in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/FileCache/FileCacheFactory.php \Drupal\Component\FileCache\FileCacheFactory::setConfiguration()
  2. 9 core/lib/Drupal/Component/FileCache/FileCacheFactory.php \Drupal\Component\FileCache\FileCacheFactory::setConfiguration()

Sets the configuration to use for constructing future file cache objects.

Parameters

array $configuration: The configuration to use.

10 calls to FileCacheFactory::setConfiguration()
AnnotatedClassDiscoveryCachedTest::setUp in core/tests/Drupal/Tests/Component/Annotation/AnnotatedClassDiscoveryCachedTest.php
AnnotatedClassDiscoveryTest::setUp in core/tests/Drupal/Tests/Component/Annotation/AnnotatedClassDiscoveryTest.php
DrupalKernel::boot in core/lib/Drupal/Core/DrupalKernel.php
Boots the current kernel.
ExtensionDiscoveryTest::testExtensionDiscoveryCache in core/tests/Drupal/Tests/Core/Extension/ExtensionDiscoveryTest.php
Tests changing extension discovery file cache objects to arrays.
FileCacheFactoryTest::setUp in core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php

... See full list

File

core/lib/Drupal/Component/FileCache/FileCacheFactory.php, line 92

Class

FileCacheFactory
Creates a FileCache object.

Namespace

Drupal\Component\FileCache

Code

public static function setConfiguration($configuration) {
  static::$configuration = $configuration;
}