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

Breadcrumb

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

function Query::find

Finds nodes matching the given selector starting from the current matched nodes, if any, or from the root

Parameters

string $selector Selector:

Return value

$this

Throws

Selector\Exception

File

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

Class

Query
Nodes query class

Namespace

Peast

Code

public function find($selector) {
    $parser = new Selector\Parser($selector, $this->options);
    $selector = $parser->parse();
    $this->matches = $selector->exec($this->matches);
    return $this;
}

API Navigation

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