Files
cdesai-tff/cdesai_tff.module
T

31 lines
619 B
Plaintext

<?php
use Drupal\Core\Template\Attribute;
/**
* @file
* Implements hook functions needed by cdesai_tff module.
*/
/**
* Implements hook_theme().
*/
function cdesai_tff_theme($existing, $type, $theme, $path) {
return [
'cdesai_tff_tooltip_formatter' => [
'template' => 'cdesai-tff-tooltip-formatter',
'variables' => [
'value' => NULL,
'attributes' => [],
],
],
];
}
/**
* Preprocessor for cdesai_tff_tooltip_formatter theme.
*/
function template_preprocess_cdesai_tff_tooltip_formatter(&$variables) {
//$attributes = new Attribute($variables['attributes']);
}