FileCacheFactory::setPrefix

public static FileCacheFactory::setPrefix($prefix)

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

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

Class

FileCacheFactory
Creates a FileCache object.

Namespace

Drupal\Component\FileCache

Code

public static function setPrefix($prefix) {
  static::$prefix = $prefix;
}
doc_Drupal
2016-10-29 09:13:24
Comments
Leave a Comment

Please login to continue.