function Translator::addAttributeMatching
Throws
File
-
vendor/
symfony/ css-selector/ XPath/ Translator.php, line 200
Class
- Translator
- XPath expression translator interface.
Namespace
Symfony\Component\CssSelector\XPathCode
public function addAttributeMatching(XPathExpr $xpath, string $operator, string $attribute, ?string $value) : XPathExpr {
if (!isset($this->attributeMatchingTranslators[$operator])) {
throw new ExpressionErrorException(\sprintf('Attribute matcher operator "%s" not supported.', $operator));
}
return $this->attributeMatchingTranslators[$operator]($xpath, $attribute, $value);
}