function LanguageNegotiationInfoTest::keysValuesSet
Same name in other branches
- 10 core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php \Drupal\Tests\language\Functional\LanguageNegotiationInfoTest::keysValuesSet()
Sets key/value pairs for language_test module.
Ensures to correctly update data both in the child site and the test runner environment.
Parameters
array $values: The key/value pairs to set in the key value store.
1 call to LanguageNegotiationInfoTest::keysValuesSet()
- LanguageNegotiationInfoTest::testInfoAlterations in core/
modules/ language/ tests/ src/ Functional/ LanguageNegotiationInfoTest.php - Tests alterations to language types/negotiation info.
File
-
core/
modules/ language/ tests/ src/ Functional/ LanguageNegotiationInfoTest.php, line 62
Class
- LanguageNegotiationInfoTest
- Tests alterations to language types/negotiation info.
Namespace
Drupal\Tests\language\FunctionalCode
protected function keysValuesSet(array $values) : void {
// Set the new key value values.
$this->container
->get('keyvalue')
->get('language_test')
->setMultiple($values);
// Refresh in-memory static key value/config caches and static variables.
$this->refreshVariables();
// Refresh/rewrite language negotiation configuration, in order to pick up
// the manipulations performed by language_test module's info alter hooks.
$this->container
->get('language_negotiator')
->purgeConfiguration();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.