pager_example.module in Examples for Developers 3.x
Pager Example.
File
modules/pager_example/pager_example.moduleView source
<?php
/**
* @file
* Pager Example.
*/
/**
* @defgroup pager_example Example: Pager
* @ingroup examples
* @{
* Output nodes in the table with pagination.
*
* @see \Drupal\Core\Database\Query\PagerSelectExtender
*/
/**
* Implements hook_theme().
*/
function pager_example_theme() {
// We use a template file to allow for translation of blocks of content.
// Therefore we need to add this content at the theming layer.
return [
'pager_example_description' => [
'template' => 'description',
'variables' => [],
],
];
}
/**
* @} End of "defgroup pager_example".
*/
Functions
Name | Description |
---|---|
pager_example_theme | Implements hook_theme(). |