TemplateManager
class TemplateManager
Profiler Templates Manager.
Properties
| protected | $twig | ||
| protected | $templates | ||
| protected | $profiler |
Methods
| __construct(Profiler $profiler, Environment $twig, array $templates) | ||
| mixed | getName(Profile $profile, string $panel) Gets the template name for a given panel. | |
| array | getNames(Profile $profile) Gets template names of templates that are present in the viewed profile. | |
| templateExists($template) |
Details
__construct(Profiler $profiler, Environment $twig, array $templates)
Parameters
| Profiler | $profiler | |
| Environment | $twig | |
| array | $templates |
mixed getName(Profile $profile, string $panel)
Gets the template name for a given panel.
Parameters
| Profile | $profile | |
| string | $panel |
Return Value
| mixed |
Exceptions
| NotFoundHttpException |
array getNames(Profile $profile)
Gets template names of templates that are present in the viewed profile.
Parameters
| Profile | $profile |
Return Value
| array |
Exceptions
| UnexpectedValueException |
protected templateExists($template)
Parameters
| $template |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.html