public function ProfilerStorageManager::addStorage in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Profiler/ProfilerStorageManager.php \Drupal\webprofiler\Profiler\ProfilerStorageManager::addStorage()
- 8.2 webprofiler/src/Profiler/ProfilerStorageManager.php \Drupal\webprofiler\Profiler\ProfilerStorageManager::addStorage()
- 4.x webprofiler/src/Profiler/ProfilerStorageManager.php \Drupal\webprofiler\Profiler\ProfilerStorageManager::addStorage()
Parameters
$id:
$title:
\Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface $storage:
File
- webprofiler/
src/ Profiler/ ProfilerStorageManager.php, line 45
Class
- ProfilerStorageManager
- Class ProfilerStorageManager
Namespace
Drupal\webprofiler\ProfilerCode
public function addStorage($id, $title, ProfilerStorageInterface $storage) {
$this->storages[$id] = [
'title' => $title,
'class' => $storage,
];
}