From 6c76da28b79024114744e0af9443f1c5c39a5e9f Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Thu, 3 Oct 2024 16:31:31 -0400 Subject: [PATCH] #4300: Remove unused form class (#4304) --- .../Form/DkanSqlEndpointSettingsForm.php | 71 ------------------- 1 file changed, 71 deletions(-) delete mode 100644 modules/datastore/src/SqlEndpoint/Form/DkanSqlEndpointSettingsForm.php diff --git a/modules/datastore/src/SqlEndpoint/Form/DkanSqlEndpointSettingsForm.php b/modules/datastore/src/SqlEndpoint/Form/DkanSqlEndpointSettingsForm.php deleted file mode 100644 index 935cf95968..0000000000 --- a/modules/datastore/src/SqlEndpoint/Form/DkanSqlEndpointSettingsForm.php +++ /dev/null @@ -1,71 +0,0 @@ -config('datastore.settings'); - $form['rows_limit'] = [ - '#type' => 'number', - '#min' => 1, - '#max' => 20000, - '#title' => $this->t('Rows limit'), - '#default_value' => $config->get('rows_limit'), - '#description' => $this->t('Maximum number of rows the datastore SQL query endpoint can return in a single request.'), - ]; - return parent::buildForm($form, $form_state); - } - - /** - * Inherited. - * - * {@inheritdoc} - */ - public function submitForm(array &$form, FormStateInterface $form_state) { - parent::submitForm($form, $form_state); - - $this->config('datastore.settings') - ->set('rows_limit', $form_state->getValue('rows_limit')) - ->save(); - } - -}