HookRenderEvent
class HookRenderEvent extends BaseHookRenderEvent
HookRenderEvent is used by the hook template engine plugin function.
Class HookRenderEvent
Methods
__construct($code,
array $arguments = array())
No description
mixed|null
getArgument(
string $key,
string|null $default = null)
Get an argument
from
BaseHookRenderEvent
$this
add(
string $content)
Add a new fragment
array
get()
Get an array of all the fragments
string
dump(
string $glue = '',
string $before = '',
string $after = '')
Concatenates all fragments in a string.
Details
at line 27
__construct($code,
array $arguments = array())
in
BaseHookRenderEvent at line 43
$this
setCode(
string $code)
Set the code of the hook
in
BaseHookRenderEvent at line 55
string
getCode()
Get the code of the hook
in
BaseHookRenderEvent at line 66
$this
setArguments(
array $arguments)
Set all arguments
in
BaseHookRenderEvent at line 78
array
getArguments()
Get all arguments
in
BaseHookRenderEvent at line 90
$this
setArgument(
string $key,
string $value)
add or replace an argument
in
BaseHookRenderEvent at line 103
mixed|null
getArgument(
string $key,
string|null $default = null)
Get an argument
in
BaseHookRenderEvent at line 114
bool
hasArgument($key)
Check if an argument exists with this key
at line 39
$this
add(
string $content)
Add a new fragment
at line 51
array
get()
Get an array of all the fragments
at line 64
string
dump(
string $glue = '',
string $before = '',
string $after = '')
Concatenates all fragments in a string.