You are here

public function MediaGallerySettingsForm::submitForm in Media Gallery 8

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/MediaGallerySettingsForm.php, line 44

Class

MediaGallerySettingsForm
Configuration form for a media gallery entity type.

Namespace

Drupal\media_gallery\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->messenger()
    ->addStatus($this
    ->t('The configuration has been updated.'));
}