Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
filterBodyNodes example
$this
->parent = null;
$this
->blocks =
[
]
;
$this
->macros =
[
]
;
$this
->traits =
[
]
;
$this
->blockStack =
[
]
;
$this
->importedSymbols =
[
[
]
]
;
$this
->embeddedTemplates =
[
]
;
try
{
$body
=
$this
->
subparse
(
$test
,
$dropNeedle
)
;
if
(
null !==
$this
->parent && null ===
$body
=
$this
->
filterBodyNodes
(
$body
)
)
{
$body
=
new
Node
(
)
;
}
}
catch
(
SyntaxError
$e
)
{
if
(
!
$e
->
getSourceContext
(
)
)
{
$e
->
setSourceContext
(
$this
->stream->
getSourceContext
(
)
)
;
}
if
(
!
$e
->
getTemplateLine
(
)
)
{
$e
->
setTemplateLine
(
$this
->stream->
getCurrent
(
)
->
getLine
(
)
)
;
}