next_views_entity_reference-8.x-1.0-beta2/next_views_entity_reference.module
next_views_entity_reference.module
<?php
/**
* @file
* Contains next_views_entity_reference.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function next_views_entity_reference_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the next_views_entity_reference module.
case 'help.page.next_views_entity_reference':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Provide next/prior links for entity in an entity reference view') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function next_views_entity_reference_theme() {
return [
'next_entity_reference_view_block' => [
'render element' => 'children',
'variables' => ['content' => []],
],
];
}
