function acquia_contenthub_update_8302 in Acquia Content Hub 8
Set default values for import queue in acquia_contenthub.entity_config.
File
- ./
acquia_contenthub.install, line 202 - Install, update and uninstall functions for the acquia_contenthub module.
Code
function acquia_contenthub_update_8302() {
$config = \Drupal::configFactory()
->getEditable('acquia_contenthub.entity_config');
if (!$config
->get('import_with_queue')) {
$config
->set('import_with_queue', FALSE);
}
if (!$config
->get('import_queue_batch_size')) {
$config
->set('import_queue_batch_size', 1);
}
if (!$config
->get('import_queue_wait_time')) {
$config
->set('import_queue_wait_time', 3);
}
$config
->save();
}