Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
compileBlockArguments example
->
subcompile
(
$this
->
getNode
(
'template'
)
)
->
raw
(
', '
)
->
repr
(
$this
->
getTemplateName
(
)
)
->
raw
(
', '
)
->
repr
(
$this
->
getTemplateLine
(
)
)
->
raw
(
')'
)
;
}
$compiler
->
raw
(
sprintf
(
'->%s',
$method
)
)
;
return
$this
->
compileBlockArguments
(
$compiler
)
;
}
private
function
compileBlockArguments
(
Compiler
$compiler
)
: Compiler
{
$compiler
->
raw
(
'('
)
->
subcompile
(
$this
->
getNode
(
'name'
)
)
->
raw
(
', $context'
)
;
if
(
!
$this
->
hasNode
(
'template'
)
)
{
$compiler
->
raw
(
', $blocks'
)
;
}