diff --git a/uw_cfg_common.install b/uw_cfg_common.install index 2f0de45e7df6f1c0083a274e42f551f81812c6c6..61af71b7e00c293df9be868d854c6b1e6790106e 100644 --- a/uw_cfg_common.install +++ b/uw_cfg_common.install @@ -748,7 +748,7 @@ function uw_cfg_common_update_9108(&$sandbox) { // The or condition for the query. $group = $query->orConditionGroup(); - // The number of nodes per batch + // The number of nodes per batch. $nodes_per_batch = 50; // Get the content types to batch. @@ -843,7 +843,13 @@ function uw_cfg_common_update_9108(&$sandbox) { $sandbox['processed'] += count($nids); // Set the message to display. - $message = t('Processing nodes of - @p/@t.', ['@p' => $sandbox['processed'], '@t' => $sandbox['total']]); + $message = t( + 'Processing nodes of - @p/@t.', + [ + '@p' => $sandbox['processed'], + '@t' => $sandbox['total'] + ] + ); // If we are done, then complete the batching. if ($sandbox['processed'] >= $sandbox['total']) { @@ -853,7 +859,7 @@ function uw_cfg_common_update_9108(&$sandbox) { } // Update the finished, when done processed / total will be 1. - $sandbox['#finished'] = ($sandbox['processed'] / $sandbox['total']); + $sandbox['#finished'] = ($sandbox['processed'] / $sandbox['total']); return $message; } @@ -903,7 +909,7 @@ function _uw_set_fieldable_path_storage_config() { // Get the path to cfg common config install directory. $path = \Drupal::service('extension.list.module') - ->getPath('uw_cfg_common') . '/config/install/'; + ->getPath('uw_cfg_common') . '/config/install/'; $config_dir = new FileStorage($path); // Get the config from the yml file into an array.