public static function FileCacheFactory::setPrefix in Service Container 7.2
Same name and namespace in other branches
- 7 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.
File
- lib/
Drupal/ Component/ FileCache/ FileCacheFactory.php, line 103  - Contains \Drupal\Component\FileCache\FileCacheFactory.
 
Class
- FileCacheFactory
 - Creates a FileCache object.
 
Namespace
Drupal\Component\FileCacheCode
public static function setPrefix($prefix) {
  static::$prefix = $prefix;
}