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

Breadcrumb

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

function XPathExpr::__toString

1 call to XPathExpr::__toString()
XPathExpr::join in vendor/symfony/css-selector/XPath/XPathExpr.php
Joins another XPathExpr with a combiner.

File

vendor/symfony/css-selector/XPath/XPathExpr.php, line 100

Class

XPathExpr
XPath expression translator interface.

Namespace

Symfony\Component\CssSelector\XPath

Code

public function __toString() : string {
    $path = $this->path . $this->element;
    $condition = '' === $this->condition ? '' : '[' . $this->condition . ']';
    return $path . $condition;
}

API Navigation

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