Browse Source

Merge pull request #20 from JojoVes/fix/settings-form-batch-size

display configured batch size in form
pull/22/head v1.2.3
Chris MacDonald 9 months ago committed by GitHub
parent
commit
5cd6268cb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/Form/SettingsForm.php
  2. 2
      src/Plugin/QueueWorker/FixityCheckWorker.php

2
src/Form/SettingsForm.php

@ -155,7 +155,7 @@ class SettingsForm extends ConfigFormBase {
'#description' => $this->t('
<p>Set how many files will be processed at once when performing a batch / cron job</p>
'),
'#default_value' => 100,
'#default_value' => $config->get(static::BATCH_SIZE) ?: 100,
],
];

2
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;
/**

Loading…
Cancel
Save