You are here

function _lang_dropdown_get_msdropdown_skins in Language Switcher Dropdown 8.2

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

Helper function to handle msdropdown skins data.

2 calls to _lang_dropdown_get_msdropdown_skins()
LanguageDropdownBlock::blockForm in src/Plugin/Block/LanguageDropdownBlock.php
LanguageDropdownForm::buildForm in src/Form/LanguageDropdownForm.php
Form constructor.

File

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

Code

function _lang_dropdown_get_msdropdown_skins() {
  $module_path = drupal_get_path('module', 'lang_dropdown');
  return [
    'ldsSkin' => [
      'text' => t('Default skin'),
      'file' => $module_path . '/css/msdropdown/ldsSkin.css',
      'mainCSS' => 'ldsSkin',
    ],
    'ldsSkinAfter' => [
      'text' => t('Default skin, icon right'),
      'file' => $module_path . '/css/msdropdown/ldsSkin.css',
      'mainCSS' => 'ldsSkinAfter',
    ],
    'ldsSkinNoIcon' => [
      'text' => t('Default skin, no icon'),
      'file' => $module_path . '/css/msdropdown/ldsSkin.css',
      'mainCSS' => 'ldsSkinNoIcon',
    ],
    'ldsSkinNoLabel' => [
      'text' => t('Default skin, no label'),
      'file' => $module_path . '/css/msdropdown/ldsSkin.css',
      'mainCSS' => 'ldsSkinNoLabel',
    ],
    'ldsDark' => [
      'text' => t('Dark skin'),
      'file' => $module_path . '/css/msdropdown/ldsDark.css',
      'mainCSS' => 'ldsDark',
    ],
    'ldsDarkAfter' => [
      'text' => t('Dark skin, icon right'),
      'file' => $module_path . '/css/msdropdown/ldsDark.css',
      'mainCSS' => 'ldsDarkAfter',
    ],
    'ldsDarkNoIcon' => [
      'text' => t('Dark skin, no icon'),
      'file' => $module_path . '/css/msdropdown/ldsDark.css',
      'mainCSS' => 'ldsDarkNoIcon',
    ],
    'ldsDarkNoLabel' => [
      'text' => t('Dark skin, no label'),
      'file' => $module_path . '/css/msdropdown/ldsDark.css',
      'mainCSS' => 'ldsDarkNoLabel',
    ],
    'ldsBlue' => [
      'text' => t('Blue skin'),
      'file' => $module_path . '/css/msdropdown/ldsBlue.css',
      'mainCSS' => 'ldsBlue',
    ],
    'ldsBlueAfter' => [
      'text' => t('Blue skin, icon right'),
      'file' => $module_path . '/css/msdropdown/ldsBlue.css',
      'mainCSS' => 'ldsBlueAfter',
    ],
    'ldsBlueNoIcon' => [
      'text' => t('Blue skin, no icon'),
      'file' => $module_path . '/css/msdropdown/ldsBlue.css',
      'mainCSS' => 'ldsBlueNoIcon',
    ],
    'ldsBlueNoLabel' => [
      'text' => t('Blue skin, no label'),
      'file' => $module_path . '/css/msdropdown/ldsBlue.css',
      'mainCSS' => 'ldsBlueNoLabel',
    ],
    'custom' => [
      'text' => t('Custom skin'),
      'file' => '',
      'mainCSS' => '',
    ],
  ];
}