tint_connector-8.x-1.1/tint_connector.module
tint_connector.module
<?php
/**
* @file
* Contains tint_connector.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function tint_connector_help($route_name, RouteMatchInterface $route_match) {
$output = '';
switch ($route_name) {
case 'help.page.tint_connector':
$output .= '<h2>' . t('About Tint Connector') . '</h2>';
$output .= t('Integration with the TINT widget.');
break;
}
return $output;
}
/**
* Implements hook_theme().
*/
function tint_connector_theme($existing, $type, $theme, $path) {
return [
'tint-widget' => [
'variables' => [
'data_id' => NULL,
'data_expand' => NULL,
'data_infinitescroll' => NULL,
'personalization_id' => NULL,
'columns' => NULL,
'clickformore' => NULL,
],
],
];
}
