Automattic\WooCommerce\EmailEditorVendor\Symfony\Component\CssSelector\XPath

Translator::registerParserShortcut │ public │ WC 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 11.3.0

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

    return $this;
}