function clipboardjs_theme in Clipboard.js 8
Same name and namespace in other branches
- 7 clipboardjs.module \clipboardjs_theme()
- 2.0.x clipboardjs.module \clipboardjs_theme()
Implements hook_theme().
File
- ./
clipboardjs.module, line 28 - Contains clipboardjs.module.
Code
function clipboardjs_theme($existing, $type, $theme, $path) {
return [
'clipboardjs' => [
'variables' => [
'text' => NULL,
'alert_style' => 'tooltip',
'alert_text' => t('Copy was successful!'),
'height' => 13,
'width' => 13,
],
],
];
}