public function TemplateManager::getTemplates in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/src/Profiler/TemplateManager.php \Drupal\webprofiler\Profiler\TemplateManager::getTemplates()
- 8 webprofiler/src/Profiler/TemplateManager.php \Drupal\webprofiler\Profiler\TemplateManager::getTemplates()
- 8.2 webprofiler/src/Profiler/TemplateManager.php \Drupal\webprofiler\Profiler\TemplateManager::getTemplates()
Gets the templates for a given profile.
Parameters
\Symfony\Component\HttpKernel\Profiler\Profile $profile:
Return value
array
File
- webprofiler/
src/ Profiler/ TemplateManager.php, line 85
Class
- TemplateManager
- Profiler Templates Manager.
Namespace
Drupal\webprofiler\ProfilerCode
public function getTemplates(Profile $profile) {
$templates = $this
->getNames($profile);
foreach ($templates as $name => $template) {
$templates[$name] = $this->twig
->loadTemplate($template);
}
return $templates;
}