TemplateManager
class TemplateManager
Менеджер шаблонов профиля.
Свойства
| protected | $twig | | |
| protected | $templates | | |
| protected | $profiler | | |
Методы
Детали
__construct(Profiler $profiler, Environment $twig, array $templates)
Параметры
| Profiler | $profiler | |
| Environment | $twig | |
| array | $templates | |
mixed
getName(Profile $profile, string $panel)
Получает имя шаблона для заданного раздела.
Параметры
Возвращаемое значение
Исключения
array
getNames(Profile $profile)
Получает имена шаблонов, присутствующие в просматриваемом профиле.
Параметры
Возвращаемое значение
Исключения
protected
templateExists($template)
Параметры