You are here

public function CodropsGoogleNexus::getJsSettings in Responsive Menus 8

Get Drupal Javscript settings array.

Return value

array The Javascript settings array.

Overrides ResponsiveMenusPluginBase::getJsSettings

File

src/Plugin/ResponsiveMenus/CodropsGoogleNexus.php, line 85

Class

CodropsGoogleNexus
Defines the "google_nexus" plugin.

Namespace

Drupal\responsive_menus\Plugin\ResponsiveMenus

Code

public function getJsSettings() {
  $js_settings = [
    'selectors' => $this
      ->getSetting('responsive_menus_google_nexus_css_selectors'),
    'use_ecoicons' => $this
      ->getSetting('responsive_menus_google_nexus_use_ecoicons'),
    'icons' => $this
      ->getSettingArray('responsive_menus_google_nexus_icons'),
    'icon_fallback' => $this
      ->getSetting('responsive_menus_google_nexus_icon_fallback'),
  ];
  return $js_settings;
}