You are here

protected function GlobalSettingsTrait::getCollapsiblockGlobalSetting in Collapsiblock 4.x

Same name and namespace in other branches
  1. 3.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\Traits

Code

protected function getCollapsiblockGlobalSetting($key = '') {
  return $this
    ->getCollapsiblockGlobalConfig()
    ->get($key);
}