You are here

public function SmartMenusBlock::getDefaultTheme in Smartmenus.js 8

Return value

string Get default theme set using module config form.

1 call to SmartMenusBlock::getDefaultTheme()
SmartMenusBlock::blockForm in src/Plugin/Block/SmartMenusBlock.php

File

src/Plugin/Block/SmartMenusBlock.php, line 204

Class

SmartMenusBlock
Provides a 'SmartMenusBlock' block.

Namespace

Drupal\smartmenus\Plugin\Block

Code

public function getDefaultTheme() {
  $config = \Drupal::config($this->smartmenusUtil
    ->getConfigFormSettingsName());
  $theme = $config
    ->get('smartmenus_theme');
  return isset($theme) ? $theme : '';
}