You are here

public function AbstractNode::getNodeName in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/Node/AbstractNode.php \Symfony\Component\CssSelector\Node\AbstractNode::getNodeName()

Return value

string

Overrides NodeInterface::getNodeName

9 calls to AbstractNode::getNodeName()
AttributeNode::__toString in vendor/symfony/css-selector/Node/AttributeNode.php
Returns node's string representation.
ClassNode::__toString in vendor/symfony/css-selector/Node/ClassNode.php
Returns node's string representation.
CombinedSelectorNode::__toString in vendor/symfony/css-selector/Node/CombinedSelectorNode.php
Returns node's string representation.
ElementNode::__toString in vendor/symfony/css-selector/Node/ElementNode.php
Returns node's string representation.
FunctionNode::__toString in vendor/symfony/css-selector/Node/FunctionNode.php
Returns node's string representation.

... See full list

File

vendor/symfony/css-selector/Node/AbstractNode.php, line 32

Class

AbstractNode
Abstract base node class.

Namespace

Symfony\Component\CssSelector\Node

Code

public function getNodeName() {
  if (null === $this->nodeName) {
    $this->nodeName = preg_replace('~.*\\\\([^\\\\]+)Node$~', '$1', get_called_class());
  }
  return $this->nodeName;
}