You are here

interface PrevnextServiceInterface in Prevnext 8

Same name and namespace in other branches
  1. 2.x src/PrevnextServiceInterface.php \Drupal\prevnext\PrevnextServiceInterface
  2. 2.0.x src/PrevnextServiceInterface.php \Drupal\prevnext\PrevnextServiceInterface

Interface PrevnextServiceInterface.

@package Drupal\prevnext

Hierarchy

Expanded class hierarchy of PrevnextServiceInterface

All classes that implement PrevnextServiceInterface

File

src/PrevnextServiceInterface.php, line 11

Namespace

Drupal\prevnext
View source
interface PrevnextServiceInterface {

  /**
   * Retrieves previous and next nids of a given node, if they exist.
   *
   * @param \Drupal\node\Entity\Node $node
   *   The node entity.
   *
   * @return array
   *   An array of prev/next nids of given node.
   */
  public function getPreviousNext(Node $node);

}

Members

Namesort descending Modifiers Type Description Overrides
PrevnextServiceInterface::getPreviousNext public function Retrieves previous and next nids of a given node, if they exist. 1