From 71c0176bf875d1f456d46c5f34bd4c3556339df8 Mon Sep 17 00:00:00 2001 From: Kristen Pol Date: Wed, 26 Jul 2023 17:53:06 -0700 Subject: [PATCH] Add empty validateForm todo and update error message. --- modules/quant_purger/src/Form/ConfigurationForm.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/quant_purger/src/Form/ConfigurationForm.php b/modules/quant_purger/src/Form/ConfigurationForm.php index 11046b09..96c2addf 100644 --- a/modules/quant_purger/src/Form/ConfigurationForm.php +++ b/modules/quant_purger/src/Form/ConfigurationForm.php @@ -154,7 +154,7 @@ public function submitFormClear(array &$form, FormStateInterface $form_state) { } else { $status = 'error'; - $message = $this->t('Unable to clear the traffic registry due to form errors.'); + $message = $this->t('Unable to clear the traffic registry due to form errors:

' . implode('
', $form_state->getErrors())); } $response->addCommand(new PrependCommand('#purgedialogform', '
' . $message . '
')); @@ -162,4 +162,11 @@ public function submitFormClear(array &$form, FormStateInterface $form_state) { return $response; } + /** + * {@inheritdoc} + */ + public function validateForm(array &$form, FormStateInterface $form_state) { + // @todo Add validation for path_blocklist and tag_blocklist. + } + }