Same name and namespace in other branches
  1. 8.x-1.x tests/src/FunctionalJavascript/ColorboxJavascriptTest.php \Drupal\Tests\colorbox\FunctionalJavascript\ColorboxJavascriptTest::changeSetting() 1 commentaire

Change a colorbox setting.

Paramètres

string $setting: The name of the setting.

string $value: The value.

1 call to ColorboxJavascriptTest::changeSetting()
ColorboxJavascriptTest::testMobileDetection dans tests/src/FunctionalJavascript/ColorboxJavascriptTest.php
Test the mobile detection.

Fichier

tests/src/FunctionalJavascript/ColorboxJavascriptTest.php, line 131

Classe

ColorboxJavascriptTest
Test the colorbox JavaScript.

Namespace

Drupal\Tests\colorbox\FunctionalJavascript

Code

protected function changeSetting($setting, $value) {
    \Drupal::configFactory()->getEditable('colorbox.settings')
        ->set($setting, $value)
        ->save();
}