Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
translateNthChild example
class
FunctionExtension
extends
AbstractExtension
{
public
function
getFunctionTranslators
(
)
: array
{
return
[
'nth-child' =>
$this
->
translateNthChild
(
...
)
,
'nth-last-child' =>
$this
->
translateNthLastChild
(
...
)
,
'nth-of-type' =>
$this
->
translateNthOfType
(
...
)
,
'nth-last-of-type' =>
$this
->
translateNthLastOfType
(
...
)
,
'contains' =>
$this
->
translateContains
(
...
)
,
'lang' =>
$this
->
translateLang
(
...
)
,
]
;
}
/** * @throws ExpressionErrorException */