Spec-Zone.ru › Symfony 4.1

TemplateManager

class TemplateManager

Менеджер шаблонов профиля.

Свойства

protected $twig
protected $templates
protected $profiler

Методы

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

Получает имя шаблона для заданного раздела.

array getNames(Profile $profile)

Получает имена шаблонов, присутствующие в просматриваемом профиле.

templateExists($template)

Детали

__construct(Profiler $profiler, Environment $twig, array $templates)

Параметры

Profiler $profiler
Environment $twig
array $templates

mixed getName(Profile $profile, string $panel)

Получает имя шаблона для заданного раздела.

Параметры

Profile $profile
string $panel

Возвращаемое значение

mixed

Исключения

NotFoundHttpException

array getNames(Profile $profile)

Получает имена шаблонов, присутствующие в просматриваемом профиле.

Параметры

Profile $profile

Возвращаемое значение

array

Исключения

UnexpectedValueException

protected templateExists($template)

Параметры

$template

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API