function AssertContentTrait::setDrupalSettings

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::setDrupalSettings()
  2. 8.9.x core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::setDrupalSettings()
  3. 10 core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::setDrupalSettings()

Sets the value of drupalSettings for the currently-loaded page.

Variable drupalSettings refers to the drupalSettings JavaScript variable.

File

core/tests/Drupal/KernelTests/AssertContentTrait.php, line 115

Class

AssertContentTrait
Provides test methods to assert content.

Namespace

Drupal\KernelTests

Code

protected function setDrupalSettings($settings) {
    $this->drupalSettings = $settings;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.