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

Breadcrumb

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

function XPathExpr::addCondition

Return value

$this

1 call to XPathExpr::addCondition()
XPathExpr::addNameTest in vendor/symfony/css-selector/XPath/XPathExpr.php

File

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

Class

XPathExpr
XPath expression translator interface.

Namespace

Symfony\Component\CssSelector\XPath

Code

public function addCondition(string $condition, string $operator = 'and') : static {
    $this->condition = $this->condition ? \sprintf('(%s) %s (%s)', $this->condition, $operator, $condition) : $condition;
    return $this;
}

API Navigation

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