PrevnextServiceInterface.php in Prevnext 8
Same filename and directory in other branches
Namespace
Drupal\prevnextFile
src/PrevnextServiceInterface.phpView source
<?php
namespace Drupal\prevnext;
use Drupal\node\Entity\Node;
/**
* Interface PrevnextServiceInterface.
*
* @package Drupal\prevnext
*/
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);
}
Interfaces
Name | Description |
---|---|
PrevnextServiceInterface | Interface PrevnextServiceInterface. |