function acquia_contenthub_update_8401 in Acquia Content Hub 8
Set default export queue parameters in acquia_contenthub.entity_config.
File
- ./
acquia_contenthub.install, line 227 - Install, update and uninstall functions for the acquia_contenthub module.
Code
function acquia_contenthub_update_8401() {
$config = \Drupal::configFactory()
->getEditable('acquia_contenthub.entity_config');
if (!$config
->get('export_queue_nodes_per_item')) {
$config
->set('export_queue_nodes_per_item', 1);
}
if (!$config
->get('export_queue_batch_size')) {
$config
->set('export_queue_batch_size', 1);
}
if (!$config
->get('export_queue_waiting_time')) {
$config
->set('export_queue_waiting_time', 3);
}
$config
->save();
}