protected function GlobalSettingsTrait::getCollapsiblockGlobalSetting in Collapsiblock 3.x
Same name and namespace in other branches
- 4.x tests/src/Traits/GlobalSettingsTrait.php \Drupal\Tests\collapsiblock\Traits\GlobalSettingsTrait::getCollapsiblockGlobalSetting()
Get a specific Collapsiblock global setting.
Parameters
string $key: The setting to get the value for.
Return value
mixed The given setting's current configuration.
File
- tests/
src/ Traits/ GlobalSettingsTrait.php, line 40
Class
- GlobalSettingsTrait
- Simplify working with global Collapsiblock settings.
Namespace
Drupal\Tests\collapsiblock\TraitsCode
protected function getCollapsiblockGlobalSetting($key = '') {
return $this
->getCollapsiblockGlobalConfig()
->get($key);
}