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

Translator::registerParserShortcutpublicWC 1.0

Method of the class: Translator{}

No Hooks.

Returns

$this.

Usage

$Translator = new Translator();
$Translator->registerParserShortcut( $shortcut ): self;
$shortcut(ParserInterface) (required)
.

Translator::registerParserShortcut() code WC 10.4.3

public function registerParserShortcut(ParserInterface $shortcut): self
{
    $this->shortcutParsers[] = $shortcut;

    return $this;
}