<?php

/**
 * @file
 * Install, update and uninstall functions for the config_test module.
 */

declare(strict_types=1);

/**
 * 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();
  }
}
