You are here

function acquia_contenthub_update_8601 in Acquia Content Hub 8

Set default delete_mismatching_translations to zero.

File

./acquia_contenthub.install, line 254
Install, update and uninstall functions for the acquia_contenthub module.

Code

function acquia_contenthub_update_8601() {
  $config = \Drupal::configFactory()
    ->getEditable('acquia_contenthub.entity_config');
  if (!$config
    ->get('delete_mismatching_translations')) {
    $config
      ->set('delete_mismatching_translations', 0);
  }
  $config
    ->save();
}