function preview_link_theme in Preview Link 2.0.x
Same name and namespace in other branches
- 8 preview_link.module \preview_link_theme()
- 2.x preview_link.module \preview_link_theme()
Implements hook_theme().
File
- ./
preview_link.module, line 49 - Module file.
Code
function preview_link_theme(array $existing, string $type, string $theme, string $path) : array {
return [
'preview_link' => [
'path' => $path . '/templates',
'template' => 'preview-link',
'variables' => [
'title' => NULL,
'link' => NULL,
'description' => NULL,
'remaining_lifetime' => NULL,
],
],
];
}