Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath

XPathExpr::addNameTestpublicWC 1.0

Method of the class: XPathExpr{}

No Hooks.

Returns

$this.

Usage

$XPathExpr = new XPathExpr();
$XPathExpr->addNameTest(): self;

XPathExpr::addNameTest() code WC 10.7.0

public function addNameTest(): self
{
    if ('*' !== $this->element) {
        $this->addCondition('name() = '.Translator::getXpathLiteral($this->element));
        $this->element = '*';
    }

    return $this;
}