You are here

function acquia_contenthub_update_82002 in Acquia Content Hub 8.2

Updates ACH configuration with default value of send_contenthub_update.

File

./acquia_contenthub.install, line 64
updates-8.6.x-contenthub-configuration Update functions to Configuration Entities.

Code

function acquia_contenthub_update_82002(&$sandbox) {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('acquia_contenthub.admin_settings');
  $config
    ->set('send_contenthub_updates', TRUE);
  $config
    ->save();
}