You are here

protected function GridStackTestTrait::updateConfig in GridStack 8

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

Code

protected function updateConfig($setting, $value, $config = 'blazy.settings') {
  \Drupal::configFactory()
    ->getEditable($config)
    ->set($setting, $value)
    ->save();
}