Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ElementNode.php

function ElementNode::__toString

File

vendor/symfony/css-selector/Node/ElementNode.php, line 47

Class

ElementNode
Represents a "<namespace>|<element>" node.

Namespace

Symfony\Component\CssSelector\Node

Code

public function __toString() : string {
    $element = $this->element ?: '*';
    return \sprintf('%s[%s]', $this->getNodeName(), $this->namespace ? $this->namespace . '|' . $element : $element);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal