protected function GridStackTestTrait::updateConfig in GridStack 8.2
Same name and namespace in other branches
- 8 tests/src/Traits/GridStackTestTrait.php \Drupal\Tests\gridstack\Traits\GridStackTestTrait::updateConfig()
Update a blazy setting.
Parameters
string $setting: The name of the setting.
string $value: The value.
string $config: The config.
File
- tests/
src/ Traits/ GridStackTestTrait.php, line 55
Class
- GridStackTestTrait
- A Trait common for GridStack tests.
Namespace
Drupal\Tests\gridstack\TraitsCode
protected function updateConfig($setting, $value, $config = 'blazy.settings') {
\Drupal::configFactory()
->getEditable($config)
->set($setting, $value)
->save();
}