protected function ColorboxJavascriptTest::changeSetting in Colorbox 8
Change a colorbox setting.
Parameters
string $setting: The name of the setting.
string $value: The value.
1 call to ColorboxJavascriptTest::changeSetting()
- ColorboxJavascriptTest::testMobileDetection in tests/
src/ FunctionalJavascript/ ColorboxJavascriptTest.php - Test the mobile detection.
File
- tests/
src/ FunctionalJavascript/ ColorboxJavascriptTest.php, line 131
Class
- ColorboxJavascriptTest
- Test the colorbox JavaScript.
Namespace
Drupal\Tests\colorbox\FunctionalJavascriptCode
protected function changeSetting($setting, $value) {
\Drupal::configFactory()
->getEditable('colorbox.settings')
->set($setting, $value)
->save();
}