protected function FileProfilerStorage::getFilename

Gets filename to store data, associated to the token.

Return value

string The profile filename

3 calls to FileProfilerStorage::getFilename()
FileProfilerStorage::createProfileFromData in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php
FileProfilerStorage::read in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php
Reads data associated with the given token.
FileProfilerStorage::write in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php
Saves a Profile.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php, line 182

Class

FileProfilerStorage
Storage for profiler using files.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

protected function getFilename($token) {

  // Uses 4 last characters, because first are mostly the same.
  $folderA = substr($token, -2, 2);
  $folderB = substr($token, -4, 2);
  return $this->folder . '/' . $folderA . '/' . $folderB . '/' . $token;
}