You are here

public function ProfilerStorageManager::addStorage in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Profiler/ProfilerStorageManager.php \Drupal\webprofiler\Profiler\ProfilerStorageManager::addStorage()
  2. 8.2 webprofiler/src/Profiler/ProfilerStorageManager.php \Drupal\webprofiler\Profiler\ProfilerStorageManager::addStorage()
  3. 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\Profiler

Code

public function addStorage($id, $title, ProfilerStorageInterface $storage) {
  $this->storages[$id] = [
    'title' => $title,
    'class' => $storage,
  ];
}