function Query::__construct
Same name in this branch
- 11.1.x core/lib/Drupal/Core/Config/Entity/Query/Query.php \Drupal\Core\Config\Entity\Query\Query::__construct()
- 11.1.x core/lib/Drupal/Core/Entity/Query/Sql/Query.php \Drupal\Core\Entity\Query\Sql\Query::__construct()
- 11.1.x core/lib/Drupal/Core/Entity/KeyValueStore/Query/Query.php \Drupal\Core\Entity\KeyValueStore\Query\Query::__construct()
- 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
PeastCode
public function __construct(Syntax\Node\Program $root, $options = array()) {
$this->matches = new Selector\Matches();
$this->matches
->addMatch($root);
$this->options = $options;
}