Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath\Extension
FunctionExtension::translateNthLastOfType
Method of the class: FunctionExtension{}
No Hooks.
Returns
null. Nothing (null).
Usage
$FunctionExtension = new FunctionExtension(); $FunctionExtension->translateNthLastOfType( $xpath, $function ): XPathExpr;
- $xpath(XPathExpr) (required)
- .
- $function(FunctionNode) (required)
- .
FunctionExtension::translateNthLastOfType() FunctionExtension::translateNthLastOfType code WC 10.8.1
public function translateNthLastOfType(XPathExpr $xpath, FunctionNode $function): XPathExpr
{
if ('*' === $xpath->getElement()) {
throw new ExpressionErrorException('"*:nth-of-type()" is not implemented.');
}
return $this->translateNthChild($xpath, $function, true, false);
}