function FileCacheFactory::getPrefix

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/FileCache/FileCacheFactory.php \Drupal\Component\FileCache\FileCacheFactory::getPrefix()
  2. 10 core/lib/Drupal/Component/FileCache/FileCacheFactory.php \Drupal\Component\FileCache\FileCacheFactory::getPrefix()
  3. 11.x core/lib/Drupal/Component/FileCache/FileCacheFactory.php \Drupal\Component\FileCache\FileCacheFactory::getPrefix()

Returns the cache prefix.

Return value

string The cache prefix.

3 calls to FileCacheFactory::getPrefix()
FileCacheFactory::get in core/lib/Drupal/Component/FileCache/FileCacheFactory.php
Instantiates a FileCache object for a given collection identifier.
FileCacheFactoryTest::testGetSetPrefix in core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php
@covers ::getPrefix @covers ::setPrefix
KernelTestBaseTest::testSetUp in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
@covers ::setUp

File

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

Class

FileCacheFactory
Creates a FileCache object.

Namespace

Drupal\Component\FileCache

Code

public static function getPrefix() {
    return static::$prefix;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.