public function Sidr::getJsSettings in Responsive Menus 8
Get Drupal Javscript settings array.
Return value
array The Javascript settings array.
Overrides ResponsiveMenusPluginBase::getJsSettings
File
- src/
Plugin/ ResponsiveMenus/ Sidr.php, line 160
Class
- Sidr
- Defines the "sidr" plugin.
Namespace
Drupal\responsive_menus\Plugin\ResponsiveMenusCode
public function getJsSettings() {
$js_settings = [
'selectors' => $this
->getSettingArray('responsive_menus_sidr_css_selectors'),
'trigger_txt' => $this
->getSetting('responsive_menus_sidr_trigger_txt'),
'side' => $this
->getSetting('responsive_menus_sidr_menu_side'),
'speed' => $this
->getSetting('responsive_menus_sidr_animation_speed'),
'media_size' => $this
->getSetting('responsive_menus_sidr_media_size'),
'displace' => $this
->getSetting('responsive_menus_sidr_displace'),
'renaming' => $this
->getSetting('responsive_menus_sidr_renaming'),
'onOpen' => $this
->getSetting('responsive_menus_sidr_on_open'),
'onClose' => $this
->getSetting('responsive_menus_sidr_on_close'),
];
return $js_settings;
}