trait UltimenuTrait in Ultimenu 8.2
A Trait common for Ultimenu split services.
Hierarchy
- trait \Drupal\ultimenu\UltimenuTrait
File
- src/
UltimenuTrait.php, line 8
Namespace
Drupal\ultimenuView source
trait UltimenuTrait {
/**
* Config Factory Service Object.
*
* @var \Drupal\Core\Config\ConfigFactoryInterface
*/
protected $configFactory;
/**
* {@inheritdoc}
*/
public function getConfig($config = 'ultimenu.settings') {
return $this->configFactory
->get($config);
}
/**
* {@inheritdoc}
*/
public function getSetting($setting_name = NULL) {
return $this
->getConfig()
->get($setting_name);
}
/**
* Return a shortcut for the default theme.
*/
public function getThemeDefault() {
return $this->configFactory
->get('system.theme')
->get('default');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UltimenuTrait:: |
protected | property | Config Factory Service Object. | |
UltimenuTrait:: |
public | function | ||
UltimenuTrait:: |
public | function | ||
UltimenuTrait:: |
public | function | Return a shortcut for the default theme. |