Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getNodeTranslators example
return
(
$prefix
?: ''
)
.
$this
->
nodeToXPath
(
$selector
)
;
}
/** * @return $this */
public
function
registerExtension
(
Extension\ExtensionInterface
$extension
)
:
static
{
$this
->extensions
[
$extension
->
getName
(
)
]
=
$extension
;
$this
->nodeTranslators =
array_merge
(
$this
->nodeTranslators,
$extension
->
getNodeTranslators
(
)
)
;
$this
->combinationTranslators =
array_merge
(
$this
->combinationTranslators,
$extension
->
getCombinationTranslators
(
)
)
;
$this
->functionTranslators =
array_merge
(
$this
->functionTranslators,
$extension
->
getFunctionTranslators
(
)
)
;
$this
->pseudoClassTranslators =
array_merge
(
$this
->pseudoClassTranslators,
$extension
->
getPseudoClassTranslators
(
)
)
;
$this
->attributeMatchingTranslators =
array_merge
(
$this
->attributeMatchingTranslators,
$extension
->
getAttributeMatchingTranslators
(
)
)
;
return
$this
;
}
/** * @throws ExpressionErrorException */