function config_test_install
Same name in other branches
- 11.x core/modules/config/tests/config_test/config_test.install \config_test_install()
Implements hook_install().
File
-
core/
modules/ config/ tests/ config_test/ config_test.install, line 11
Code
function config_test_install($is_syncing) : void {
$secondary_write = \Drupal::state()->get('config_test_install.foo_value');
if ($secondary_write !== NULL) {
\Drupal::configFactory()->getEditable('config_test.system')
->set('foo', $secondary_write)
->save();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.