You are here

function stream_wrapper_example_theme in Examples for Developers 8

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

Implements hook_theme().

Since we have a lot to explain, we're going to use Twig to do it.

File

stream_wrapper_example/stream_wrapper_example.module, line 98
Contains the module file for the Stream Wrapper Example.

Code

function stream_wrapper_example_theme() {
  return [
    'example_description' => [
      'template' => 'description',
      'variables' => [
        'admin_link' => NULL,
      ],
    ],
  ];
}