WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath

XPathExpr::addNameTest() public WC 1.0

{} It's a method of the class: XPathExpr{}

No Hooks.

Return

$this.

Usage

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

Code of XPathExpr::addNameTest() WC 5.4.1

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

    return $this;
}