Extension
abstract class Extension
Latte extension.
Methods
void
array
getTags()
Returns a list of parsers for Latte tags.
array
getPasses()
Returns a list of compiler passes.
array
getFilters()
Returns a list of |filters.
array
getFunctions()
Returns a list of functions used in templates.
array
getProviders()
Returns a list of providers.
mixed
getCacheKey(Engine $engine)
Returns a value that invalidates the template cache when the extension configuration changes.
void
Details
at line 21
void
beforeCompile(Engine $engine)
Initializes before template is compiled.
at line 30
array
getTags()
Returns a list of parsers for Latte tags.
at line 40
array
getPasses()
Returns a list of compiler passes.
at line 50
array
getFilters()
Returns a list of |filters.
at line 60
array
getFunctions()
Returns a list of functions used in templates.
at line 70
array
getProviders()
Returns a list of providers.
at line 79
mixed
getCacheKey(Engine $engine)
Returns a value that invalidates the template cache when the extension configuration changes.
at line 88
void
beforeRender(Template $template)
Initializes before template is rendered.
at line 98
static stdClass
order(callable $subject, array|string $before = [], array|string $after = [])
Wraps callable with ordering metadata for tags and passes.