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

Breadcrumb

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

function FunctionNode::__toString

File

vendor/symfony/css-selector/Node/FunctionNode.php, line 64

Class

FunctionNode
Represents a "<selector>:<name>(<arguments>)" node.

Namespace

Symfony\Component\CssSelector\Node

Code

public function __toString() : string {
    $arguments = implode(', ', array_map(fn(Token $token) => "'" . $token->getValue() . "'", $this->arguments));
    return \sprintf('%s[%s:%s(%s)]', $this->getNodeName(), $this->selector, $this->name, $arguments ? '[' . $arguments . ']' : '');
}

API Navigation

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