function pager_example_theme

Same name in other branches
  1. 8.x-1.x pager_example/pager_example.module \pager_example_theme()
  2. 4.0.x modules/pager_example/pager_example.module \pager_example_theme()

Implements hook_theme().

Related topics

File

modules/pager_example/pager_example.module, line 20

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