You are here

public function Translator::registerParserShortcut in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/XPath/Translator.php \Symfony\Component\CssSelector\XPath\Translator::registerParserShortcut()

Registers a shortcut parser.

Parameters

ParserInterface $shortcut:

Return value

Translator

File

vendor/symfony/css-selector/XPath/Translator.php, line 188

Class

Translator
XPath expression translator interface.

Namespace

Symfony\Component\CssSelector\XPath

Code

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