final public static function ProfilerStorageFactory::getProfilerStorage in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/src/Profiler/ProfilerStorageFactory.php \Drupal\webprofiler\Profiler\ProfilerStorageFactory::getProfilerStorage()
- 8 webprofiler/src/Profiler/ProfilerStorageFactory.php \Drupal\webprofiler\Profiler\ProfilerStorageFactory::getProfilerStorage()
- 8.2 webprofiler/src/Profiler/ProfilerStorageFactory.php \Drupal\webprofiler\Profiler\ProfilerStorageFactory::getProfilerStorage()
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config:
\Symfony\Component\DependencyInjection\ContainerInterface $container:
Return value
\Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface
1 string reference to 'ProfilerStorageFactory::getProfilerStorage'
- webprofiler.services.yml in webprofiler/
webprofiler.services.yml - webprofiler/webprofiler.services.yml
File
- webprofiler/
src/ Profiler/ ProfilerStorageFactory.php, line 19
Class
- ProfilerStorageFactory
- Class ProfilerStorageFactory.
Namespace
Drupal\webprofiler\ProfilerCode
public static final function getProfilerStorage(ConfigFactoryInterface $config, ContainerInterface $container) {
$storage = $config
->get('webprofiler.config')
->get('storage') ?: 'profiler.database_storage';
return $container
->get($storage);
}