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

NodeExtension::getNodeTranslatorspublicWC 1.0

{@inheritdoc}

Method of the class: NodeExtension{}

No Hooks.

Returns

null. Nothing (null).

Usage

$NodeExtension = new NodeExtension();
$NodeExtension->getNodeTranslators(): array;

NodeExtension::getNodeTranslators() code WC 10.4.3

public function getNodeTranslators(): array
{
    return [
        'Selector' => [$this, 'translateSelector'],
        'CombinedSelector' => [$this, 'translateCombinedSelector'],
        'Negation' => [$this, 'translateNegation'],
        'Function' => [$this, 'translateFunction'],
        'Pseudo' => [$this, 'translatePseudo'],
        'WC_Vendor_Attribute' => [$this, 'translateAttribute'],
        'Class' => [$this, 'translateClass'],
        'Hash' => [$this, 'translateHash'],
        'Element' => [$this, 'translateElement'],
    ];
}