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

Breadcrumb

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

function Program::query

Finds nodes matching the given selector.

Parameters

string $selector Selector:

array $options Options array. See Query class: documentation for available options

Return value

Query

Throws

Selector\Exception

File

vendor/mck89/peast/lib/Peast/Syntax/Node/Program.php, line 106

Class

Program
Root node for scripts and modules.

Namespace

Peast\Syntax\Node

Code

public function query($selector, $options = array()) {
    $query = new Query($this, $options);
    return $query->find($selector);
}

API Navigation

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