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

Breadcrumb

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

function Translator::__construct

Same name in this branch
  1. 11.1.x vendor/php-tuf/composer-stager/src/Internal/Translation/Service/Translator.php \PhpTuf\ComposerStager\Internal\Translation\Service\Translator::__construct()

File

vendor/symfony/css-selector/XPath/Translator.php, line 51

Class

Translator
XPath expression translator interface.

Namespace

Symfony\Component\CssSelector\XPath

Code

public function __construct(?ParserInterface $parser = null) {
    $this->mainParser = $parser ?? new Parser();
    $this->registerExtension(new Extension\NodeExtension())
        ->registerExtension(new Extension\CombinationExtension())
        ->registerExtension(new Extension\FunctionExtension())
        ->registerExtension(new Extension\PseudoClassExtension())
        ->registerExtension(new Extension\AttributeMatchingExtension());
}

API Navigation

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