You are here

function pager_example_theme in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 pager_example/pager_example.module \pager_example_theme()

Implements hook_theme().

Related topics

File

modules/pager_example/pager_example.module, line 20
Pager Example.

Code

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' => [],
    ],
  ];
}