function beautytips_manager_style_mapping in BeautyTips 8
Same name and namespace in other branches
- 7.2 beautytips_manager.module \beautytips_manager_style_mapping()
Contains an array of beautytip style options for mapping the names between php and javascript.
3 calls to beautytips_manager_style_mapping()
- beautytips_manager_define_beautytips_styles in beautytips_manager/
beautytips_manager.module - Implements hook_define_beautytips_styles().
- CustomStylesEditForm::buildForm in beautytips_manager/
src/ Form/ CustomStylesEditForm.php - Form constructor.
- CustomStylesEditForm::submitForm in beautytips_manager/
src/ Form/ CustomStylesEditForm.php - Form submission handler.
File
- beautytips_manager/
beautytips_manager.module, line 257 - Code related to defining and displaying custom beautytips and styles.
Code
function beautytips_manager_style_mapping() {
return [
'options' => [
'fill' => 'fill',
'strokeWidth' => 'stroke_width',
'strokeStyle' => 'stroke_style',
'width' => 'width',
'padding' => 'padding',
'cornerRadius' => 'corner_radius',
'spikeGirth' => 'spike_girth',
'spikeLength' => 'spike_length',
'shadow' => 'shadow',
'shadowBlur' => 'shadow_blur',
'shadowColor' => 'shadow_color',
'cssClass' => 'css_class',
],
'css_options' => [
'color' => 'css_color',
'fontFamily' => 'css_font_family',
'fontWeight' => 'css_font_weight',
'fontSize' => 'css_font_size',
],
];
}