SmartmenusUtil.php in Smartmenus.js 8
File
src/SmartmenusUtil.php
View source
<?php
namespace Drupal\smartmenus;
use Drupal\Core\StringTranslation\TranslationManager;
class SmartmenusUtil {
protected $translation;
public function __construct(TranslationManager $translation) {
$this->translation = $translation;
}
public function getAvailableMenuThemesList() : array {
return [
'' => $this->translation
->translate('None'),
'sm-blue' => $this->translation
->translate('Blue'),
'sm-clean' => $this->translation
->translate('Clean'),
'sm-mint' => $this->translation
->translate('Mint'),
'sm-simple' => $this->translation
->translate('Simple'),
];
}
public function getConfigFormSettingsName() : string {
return 'smartmenus.smartmenussettings';
}
}