WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

PseudoClassExtension::translateFirstOfType() public WC 1.0

{} It's a method of the class: PseudoClassExtension{}

No Hooks.

Return

XPathExpr.

Usage

$PseudoClassExtension = new PseudoClassExtension();
$PseudoClassExtension->translateFirstOfType( $xpath );
$xpath(XPathExpr) (required)
-

Code of PseudoClassExtension::translateFirstOfType() WC 5.4.1

<?php
public function translateFirstOfType(XPathExpr $xpath)
{
    if ('*' === $xpath->getElement()) {
        throw new ExpressionErrorException('"*:first-of-type" is not implemented.');
    }

    return $xpath
        ->addStarPrefix()
        ->addCondition('position() = 1');
}