DefaultHook
class DefaultHook extends BaseHook
Class DefaultHook
Constants
INJECT_TEMPLATE_METHOD_NAME |
|
Properties
BaseModule | $module | from BaseHook | |
ParserInterface | $parser | from BaseHook | |
TranslatorInterface | $translator | from BaseHook | |
AssetResolverInterface | $assetsResolver | from BaseHook | |
EventDispatcherInterface | $dispatcher | from BaseHook |
Methods
insertTemplate(
HookRenderEvent $event,
string $code)
This function is called when hook uses the automatic insert template.
from
BaseHook
string
render(
string $templateName,
array $parameters = array())
helper function allowing you to render a template using a template engine
from
BaseHook
string
dump(
string $fileName)
helper function allowing you to get the content of a file
from
BaseHook
string
addCSS(
string $fileName,
array $attributes = array(),
array $filters = array())
helper function allowing you to generate the HTML link tag
from
BaseHook
Details
in
BaseHook at line 91
insertTemplate(
HookRenderEvent $event,
string $code)
This function is called when hook uses the automatic insert template.
in
BaseHook at line 134
string
render(
string $templateName,
array $parameters = array())
helper function allowing you to render a template using a template engine
in
BaseHook at line 155
string
dump(
string $fileName)
helper function allowing you to get the content of a file
in
BaseHook at line 180
string
addCSS(
string $fileName,
array $attributes = array(),
array $filters = array())
helper function allowing you to generate the HTML link tag
in
BaseHook at line 211
string
addJS(
string $fileName,
array $attributes = array(),
array $filters = array())
helper function allowing you to generate the HTML script tag
in
BaseHook at line 236
setModule(
BaseModule $module)
in
BaseHook at line 244
BaseModule
getModule()
in
BaseHook at line 252
setParser(
ParserInterface $parser)
in
BaseHook at line 260
ParserInterface
getParser()
in
BaseHook at line 406
addTemplate(
string $hookCode,
string $value)
Add a new template for automatic render