Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath
Translator::parseSelectors
Method of the class: Translator{}
No Hooks.
Returns
SelectorNode[].
Usage
// private - for code of main (parent) class only $result = $this->parseSelectors( $css ): array;
- $css(string) (required)
- .
Translator::parseSelectors() Translator::parseSelectors code WC 10.4.3
private function parseSelectors(string $css): array
{
foreach ($this->shortcutParsers as $shortcut) {
$tokens = $shortcut->parse($css);
if (!empty($tokens)) {
return $tokens;
}
}
return $this->mainParser->parse($css);
}