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

Breadcrumb

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

function MatchingNode::__toString

File

vendor/symfony/css-selector/Node/MatchingNode.php, line 46

Class

MatchingNode
Represents a "<selector>:is(<subSelectorList>)" node.

Namespace

Symfony\Component\CssSelector\Node

Code

public function __toString() : string {
    $selectorArguments = array_map(fn($n): string => ltrim((string) $n, '*'), $this->arguments);
    return \sprintf('%s[%s:is(%s)]', $this->getNodeName(), $this->selector, implode(', ', $selectorArguments));
}

API Navigation

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