Skip to content

Commit

Permalink
config save message fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ozdemirozcelik committed Mar 6, 2024
1 parent 8b69b3d commit d293cf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Form/SettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
->set('gdx_analytics_search_path', $form_state->getValue('gdx_analytics_search_path'))
->save();

// Provide a success message upon successful configuration save.
$this->messenger()->addMessage($this->t('Settings have been saved.'));
// Drupal will provide "The configuration options have been saved." message

} catch (\Exception $e) {
// Log the exception and display a message
\Drupal::logger('gdx_analytics_drupal_snowplow')->error('An error occurred while saving settings: @message', ['@message' => $e->getMessage()]);
Expand Down

0 comments on commit d293cf8

Please sign in to comment.