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

Breadcrumb

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

function Query::get

Returns the node at the given index

Parameters

int $index Index:

Return value

array

Throws

\Exception

File

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

Class

Query
Nodes query class

Namespace

Peast

Code

public function get($index) {
    return $this->matches
        ->get($index)[0];
}

API Navigation

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