private function NextPreviousBlock::generateNext in Next Previous Post Block (Node or Page Pagination) 9.0.x
Same name and namespace in other branches
- 8.5 src/Plugin/Block/NextPreviousBlock.php \Drupal\nextpre\Plugin\Block\NextPreviousBlock::generateNext()
- 8 src/Plugin/Block/NextPreviousBlock.php \Drupal\nextpre\Plugin\Block\NextPreviousBlock::generateNext()
- 1.0.x src/Plugin/Block/NextPreviousBlock.php \Drupal\nextpre\Plugin\Block\NextPreviousBlock::generateNext()
Lookup the next node,oldest node which is still younger than the node.
Parameters
string $node: Show current page node id.
Return value
array A render array for a next node.
1 call to NextPreviousBlock::generateNext()
- NextPreviousBlock::build in src/
Plugin/ Block/ NextPreviousBlock.php - Builds and returns the renderable array for this block plugin.
File
- src/
Plugin/ Block/ NextPreviousBlock.php, line 198
Class
- NextPreviousBlock
- Provides a 'Next Previous' block.
Namespace
Drupal\nextpre\Plugin\BlockCode
private function generateNext($node) {
return $this
->generateNextPrevious($node, 'next');
}