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

Breadcrumb

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

function Query::__construct

Same name in this branch
  1. 11.1.x core/lib/Drupal/Core/Config/Entity/Query/Query.php \Drupal\Core\Config\Entity\Query\Query::__construct()
  2. 11.1.x core/lib/Drupal/Core/Entity/Query/Sql/Query.php \Drupal\Core\Entity\Query\Sql\Query::__construct()
  3. 11.1.x core/lib/Drupal/Core/Entity/KeyValueStore/Query/Query.php \Drupal\Core\Entity\KeyValueStore\Query\Query::__construct()
  4. 11.1.x core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::__construct()

Class constructor. Available options are:

  • encoding: selectors encoding. If not specified the parser will assume UTF-8.

Parameters

Syntax\Node\Program $root Root node:

array $options Options array:

File

vendor/mck89/peast/lib/Peast/Query.php, line 41

Class

Query
Nodes query class

Namespace

Peast

Code

public function __construct(Syntax\Node\Program $root, $options = array()) {
    $this->matches = new Selector\Matches();
    $this->matches
        ->addMatch($root);
    $this->options = $options;
}
RSS feed
Powered by Drupal