HookRenderBlockEvent
class HookRenderBlockEvent extends BaseHookRenderEvent
Class HookRenderBlockEvent
Methods
__construct($code,
array $arguments = array(),
array $fields = array())
No description
mixed|null
getArgument(
string $key,
string|null $default = null)
Get an argument
from
BaseHookRenderEvent
$this
add(
array $data)
Add a new fragment as an array
$this
addFragment(
Fragment $fragment)
Add a new fragment
get()
Get all contents
array
getFields()
No description
setFields(
array $fields)
No description
Details
at line 31
__construct($code,
array $arguments = array(),
array $fields = 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 44
$this
add(
array $data)
Add a new fragment as an array
at line 59
$this
addFragment(
Fragment $fragment)
Add a new fragment
at line 74
FragmentBag
get()
Get all contents