sooperthemes_gridstack-8.x-1.x-dev/sooperthemes_gridstack.module
sooperthemes_gridstack.module
<?php
/**
* @file
* Primary module hooks for SooperThemes GridStack module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function sooperthemes_gridstack_help($route_name, RouteMatchInterface $route_match) {
if ($route_name == 'help.page.sooperthemes_gridstack') {
return t(
'Read our <a href=":url">SooperThemes GridStack Views Tutorial</a> on SooperThemes.com.',
[':url' => 'https://www.sooperthemes.com/documentation/creating-new-gridstack-view']
);
}
}
/**
* Implements hook_theme().
*/
function sooperthemes_gridstack_theme() {
return [
'sooperthemes_gridstack_gridstack_style' => [
'variables' => [],
'file' => 'theme.inc',
],
'sooperthemes_gridstack_gridstack_row' => [
'variables' => [],
'file' => 'theme.inc',
],
'sooperthemes_gridstack_gridstack_formatter' => [
'variables' => [
'item' => NULL,
'item_attributes' => NULL,
'url' => NULL,
'image_style' => NULL,
],
'file' => 'theme.inc',
],
];
}
