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

Breadcrumb

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

function XPathExpr::join

Joins another XPathExpr with a combiner.

Return value

$this

File

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

Class

XPathExpr
XPath expression translator interface.

Namespace

Symfony\Component\CssSelector\XPath

Code

public function join(string $combiner, self $expr) : static {
    $path = $this->__toString() . $combiner;
    if ('*/' !== $expr->path) {
        $path .= $expr->path;
    }
    $this->path = $path;
    $this->element = $expr->element;
    $this->condition = $expr->condition;
    return $this;
}

API Navigation

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