function FileCacheFactory::setPrefix
Same name in other branches
- 8.9.x core/lib/Drupal/Component/FileCache/FileCacheFactory.php \Drupal\Component\FileCache\FileCacheFactory::setPrefix()
- 10 core/lib/Drupal/Component/FileCache/FileCacheFactory.php \Drupal\Component\FileCache\FileCacheFactory::setPrefix()
- 11.x core/lib/Drupal/Component/FileCache/FileCacheFactory.php \Drupal\Component\FileCache\FileCacheFactory::setPrefix()
Sets the cache prefix that should be used.
Should be set to a secure, unique key to prevent cache pollution by a third party.
Parameters
string $prefix: The cache prefix.
13 calls to FileCacheFactory::setPrefix()
- AnnotatedClassDiscoveryCachedTest::setUp in core/
tests/ Drupal/ Tests/ Component/ Annotation/ AnnotatedClassDiscoveryCachedTest.php - AnnotatedClassDiscoveryTest::setUp in core/
tests/ Drupal/ Tests/ Component/ Annotation/ AnnotatedClassDiscoveryTest.php - AnnotatedClassDiscoveryTest::testAutoloadBadAnnotations in core/
tests/ Drupal/ Tests/ Component/ Plugin/ Discovery/ AnnotatedClassDiscoveryTest.php - Make sure AnnotatedClassDiscovery never tries to autoload bad annotations.
- DrupalKernel::boot in core/
lib/ Drupal/ Core/ DrupalKernel.php - Boots the current kernel.
- FileCacheFactoryTest::setUp in core/
tests/ Drupal/ Tests/ Component/ FileCache/ FileCacheFactoryTest.php
File
-
core/
lib/ Drupal/ Component/ FileCache/ FileCacheFactory.php, line 115
Class
- FileCacheFactory
- Creates a FileCache object.
Namespace
Drupal\Component\FileCacheCode
public static function setPrefix($prefix) {
static::$prefix = $prefix;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.