You are here

function pager_example_theme in Examples for Developers 8

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

Implements hook_theme().

Related topics

File

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