public function ProcessQueueForm::submitForm in Field Encryption 3.0.x
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- src/
Form/ ProcessQueueForm.php, line 87
Class
- ProcessQueueForm
- Form builder for the field_encrypt process queue form.
Namespace
Drupal\field_encrypt\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$batch = new BatchBuilder();
$batch
->setTitle($this
->t('Field encryption updates'))
->addOperation([
static::class,
'processUpdates',
], [
'field_encrypt_update_entity_encryption',
])
->setFinishCallback([
static::class,
'finishBatch',
]);
batch_set($batch
->toArray());
}