You are here

function _lang_dropdown_get_ddslick_skins in Language Switcher Dropdown 8.2

Same name and namespace in other branches
  1. 7.2 lang_dropdown.module \_lang_dropdown_get_ddslick_skins()

Helper function to handle ddSlick skins data.

1 call to _lang_dropdown_get_ddslick_skins()
LanguageDropdownBlock::blockForm in src/Plugin/Block/LanguageDropdownBlock.php

File

./lang_dropdown.module, line 153
Language Switcher Dropdown engine module.

Code

function _lang_dropdown_get_ddslick_skins() {
  $module_path = drupal_get_path('module', 'lang_dropdown');
  return [
    'ddsDefault' => [
      'text' => t('Default skin'),
      'file' => $module_path . '/css/ddslick/ddsDefault.css',
    ],
    'ddsDark' => [
      'text' => t('Dark skin'),
      'file' => $module_path . '/css/ddslick/ddsDark.css',
    ],
    'ddsBlue' => [
      'text' => t('Blue skin'),
      'file' => $module_path . '/css/ddslick/ddsBlue.css',
    ],
    'custom' => [
      'text' => t('Custom skin'),
      'file' => '',
    ],
  ];
}