W3cubDocs

/Symfony 3.3

TemplateManager

class TemplateManager

Profiler Templates Manager.

Methods

__construct(Profiler $profiler, Environment $twig, array $templates)
mixed getName(Profile $profile, string $panel)

Gets the template name for a given panel.

Template[] getTemplates(Profile $profile) deprecated

Gets the templates for a given profile.

array getNames(Profile $profile)

Gets template names of templates that are present in the viewed profile.

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

Template[] getTemplates(Profile $profile) deprecated

deprecated

not used anymore internally

Gets the templates for a given profile.

Parameters

Profile $profile

Return Value

Template[]

array getNames(Profile $profile)

Gets template names of templates that are present in the viewed profile.

Parameters

Profile $profile

Return Value

array

Exceptions

UnexpectedValueException

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.html