pager_example.module

Same filename in other branches
  1. 8.x-1.x pager_example/pager_example.module
  2. 7.x-1.x pager_example/pager_example.module
  3. 4.0.x modules/pager_example/pager_example.module

Pager Example.

File

modules/pager_example/pager_example.module

View 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

Title Deprecated Summary
pager_example_theme Implements hook_theme().