From a7e11b9ca15ce85265b3c3aa9661d29a8f7ffcd7 Mon Sep 17 00:00:00 2001 From: JojoVes Date: Tue, 16 Apr 2024 13:38:34 -0300 Subject: [PATCH 1/2] display configured batch size in form The batch size was getting set on form submission, but continuing to only display 100 in the form regardless of the configured value after changing it. --- src/Form/SettingsForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/SettingsForm.php b/src/Form/SettingsForm.php index 64cd4b6..069517a 100644 --- a/src/Form/SettingsForm.php +++ b/src/Form/SettingsForm.php @@ -155,7 +155,7 @@ class SettingsForm extends ConfigFormBase { '#description' => $this->t('

Set how many files will be processed at once when performing a batch / cron job

'), - '#default_value' => 100, + '#default_value' => $config->get(static::BATCH_SIZE) ?: 100, ], ]; From 11a6e667332de4d3977cf7541b29802b31f5d888 Mon Sep 17 00:00:00 2001 From: JojoVes Date: Tue, 16 Apr 2024 13:49:17 -0300 Subject: [PATCH 2/2] coder flagged alphabetized use statements --- src/Plugin/QueueWorker/FixityCheckWorker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/QueueWorker/FixityCheckWorker.php b/src/Plugin/QueueWorker/FixityCheckWorker.php index 2bc09b5..65704e5 100644 --- a/src/Plugin/QueueWorker/FixityCheckWorker.php +++ b/src/Plugin/QueueWorker/FixityCheckWorker.php @@ -4,8 +4,8 @@ namespace Drupal\dgi_fixity\Plugin\QueueWorker; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Queue\QueueWorkerBase; -use Drupal\dgi_fixity\FixityCheckServiceInterface; use Drupal\dgi_fixity\FixityCheckInterface; +use Drupal\dgi_fixity\FixityCheckServiceInterface; use Symfony\Component\DependencyInjection\ContainerInterface; /**