You are here

public function CodropsResponsiveMulti::getJsSettings in Responsive Menus 8

Get Drupal Javscript settings array.

Return value

array The Javascript settings array.

Overrides ResponsiveMenusPluginBase::getJsSettings

File

src/Plugin/ResponsiveMenus/CodropsResponsiveMulti.php, line 94

Class

CodropsResponsiveMulti
Defines the "codrops_responsive_multi" plugin.

Namespace

Drupal\responsive_menus\Plugin\ResponsiveMenus

Code

public function getJsSettings() {
  $js_settings = [
    'selectors' => $this
      ->getSetting('responsive_menus_codrops_responsive_multi_css_selectors'),
    'media_size' => $this
      ->getSetting('responsive_menus_codrops_responsive_multi_media_size'),
    'animation_in' => $this
      ->getSetting('responsive_menus_codrops_responsive_multi_ani_in'),
    'animation_out' => $this
      ->getSetting('responsive_menus_codrops_responsive_multi_ani_out'),
  ];
  return $js_settings;
}