ProfilerStorageManager.php in Devel 8
File
webprofiler/src/Profiler/ProfilerStorageManager.php
View source
<?php
namespace Drupal\webprofiler\Profiler;
use Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface;
class ProfilerStorageManager {
private $storages;
public function getStorages() {
$output = [];
foreach ($this->storages as $id => $storage) {
$output[$id] = $storage['title'];
}
return $output;
}
public function getStorage($id) {
return $this->storages[$id];
}
public function addStorage($id, $title, ProfilerStorageInterface $storage) {
$this->storages[$id] = [
'title' => $title,
'class' => $storage,
];
}
}