Same name and namespace in other branches
- 8.x-1.x tests/src/FunctionalJavascript/ColorboxJavascriptTest.php \Drupal\Tests\colorbox\FunctionalJavascript\ColorboxJavascriptTest::changeSetting() 1 comment
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();
}