You are here

public function PrevnextServiceInterface::getPreviousNext in Prevnext 2.0.x

Same name and namespace in other branches
  1. 8 src/PrevnextServiceInterface.php \Drupal\prevnext\PrevnextServiceInterface::getPreviousNext()
  2. 2.x src/PrevnextServiceInterface.php \Drupal\prevnext\PrevnextServiceInterface::getPreviousNext()

Retrieves previous and next nids of a given node, if they exist.

Parameters

\Drupal\node\Entity\Node $node: The node entity.

Return value

array An array of prev/next nids of given node.

1 method overrides PrevnextServiceInterface::getPreviousNext()
PrevnextService::getPreviousNext in src/PrevnextService.php
Retrieves previous and next nids of a given node, if they exist.

File

src/PrevnextServiceInterface.php, line 23

Class

PrevnextServiceInterface
Interface PrevnextServiceInterface.

Namespace

Drupal\prevnext

Code

public function getPreviousNext(Node $node);