Automattic\WooCommerce\EmailEditorVendor\Symfony\Component\CssSelector\XPath
Translator::addCombination
Метод класса: Translator{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Translator = new Translator(); $Translator->addCombination( $combiner, $xpath, $combinedXpath ): XPathExpr;
- $combiner(строка) (обязательный)
- .
- $xpath(NodeInterface) (обязательный)
- .
- $combinedXpath(NodeInterface) (обязательный)
- .
Код Translator::addCombination() Translator::addCombination WC 11.2.2
public function addCombination(string $combiner, NodeInterface $xpath, NodeInterface $combinedXpath): XPathExpr
{
if (!isset($this->combinationTranslators[$combiner])) {
throw new ExpressionErrorException(sprintf('Combiner "%s" not supported.', $combiner));
}
return $this->combinationTranslators[$combiner]($this->nodeToXPath($xpath), $this->nodeToXPath($combinedXpath));
}