Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setExpand example
public
function
__construct
(
)
{
$this
->
setUseFolder
(
self::
$folder
)
;
$this
->
setForcePreRender
(
self::
$always_pre_render
)
;
}
public
function
setCallInfo
(
array
$info
)
: void
{
parent::
setCallInfo
(
$info
)
;
if
(
\
in_array
(
'!',
$this
->call_info
[
'modifiers'
]
, true
)
)
{
$this
->
setExpand
(
true
)
;
$this
->
setUseFolder
(
false
)
;
}
if
(
\
in_array
(
'@',
$this
->call_info
[
'modifiers'
]
, true
)
)
{
$this
->
setForcePreRender
(
true
)
;
}
}
public
function
setStatics
(
array
$statics
)
: void
{
parent::
setStatics
(
$statics
)
;