public function PrevnextServiceInterface::getPreviousNext in Prevnext 8
Same name and namespace in other branches
- 2.x src/PrevnextServiceInterface.php \Drupal\prevnext\PrevnextServiceInterface::getPreviousNext()
- 2.0.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 22
Class
- PrevnextServiceInterface
- Interface PrevnextServiceInterface.
Namespace
Drupal\prevnextCode
public function getPreviousNext(Node $node);