Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FileProfilerStorage.php

function FileProfilerStorage::getFilename

Gets filename to store data, associated to the token.

3 calls to FileProfilerStorage::getFilename()
FileProfilerStorage::doRead in vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php
FileProfilerStorage::removeExpiredProfiles in vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php
FileProfilerStorage::write in vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php

File

vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php, line 203

Class

FileProfilerStorage
Storage for profiler using files.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

protected function getFilename(string $token) : string {
    // 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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal