public function Translator::registerParserShortcut in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/css-selector/XPath/Translator.php \Symfony\Component\CssSelector\XPath\Translator::registerParserShortcut()
Registers a shortcut parser.
Parameters
ParserInterface $shortcut:
Return value
File
- vendor/
symfony/ css-selector/ XPath/ Translator.php, line 188
Class
- Translator
- XPath expression translator interface.
Namespace
Symfony\Component\CssSelector\XPathCode
public function registerParserShortcut(ParserInterface $shortcut) {
$this->shortcutParsers[] = $shortcut;
return $this;
}