You are here

protected function AssertContentTrait::getDrupalSettings in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::getDrupalSettings()
  2. 10 core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::getDrupalSettings()

Gets 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 104

Class

AssertContentTrait
Provides test methods to assert content.

Namespace

Drupal\KernelTests

Code

protected function getDrupalSettings() {
  return $this->drupalSettings;
}