Adds the basic Tooltip Text Formatter (no javascript).
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?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']);
|
||||
}
|
||||
Reference in New Issue
Block a user