config_test.install
Same filename in other branches
Install, update and uninstall functions for the config_test module.
File
-
core/
modules/ config/ tests/ config_test/ config_test.install
View source
<?php
/**
* @file
* Install, update and uninstall functions for the config_test module.
*/
/**
* Implements hook_install().
*/
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();
}
}
Functions
Title | Deprecated | Summary |
---|---|---|
config_test_install | Implements hook_install(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.