Same filename and directory in other branches
  1. 7.x-1.x pager_example/pager_example.module

Pager Example.

File

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

Namesort descending Description
pager_example_theme Implements hook_theme().