Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath\Extension

PseudoClassExtension::getPseudoClassTranslatorspublicWC 1.0

{@inheritdoc}

Method of the class: PseudoClassExtension{}

No Hooks.

Returns

null. Nothing (null).

Usage

$PseudoClassExtension = new PseudoClassExtension();
$PseudoClassExtension->getPseudoClassTranslators(): array;

PseudoClassExtension::getPseudoClassTranslators() code WC 10.5.0

public function getPseudoClassTranslators(): array
{
    return [
        'root' => [$this, 'translateRoot'],
        'first-child' => [$this, 'translateFirstChild'],
        'last-child' => [$this, 'translateLastChild'],
        'first-of-type' => [$this, 'translateFirstOfType'],
        'last-of-type' => [$this, 'translateLastOfType'],
        'only-child' => [$this, 'translateOnlyChild'],
        'only-of-type' => [$this, 'translateOnlyOfType'],
        'empty' => [$this, 'translateEmpty'],
    ];
}