You are here

public function ConfigTranslationAddForm::submitForm in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/config_translation/src/Form/ConfigTranslationAddForm.php \Drupal\config_translation\Form\ConfigTranslationAddForm::submitForm()

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 ConfigTranslationFormBase::submitForm

File

core/modules/config_translation/src/Form/ConfigTranslationAddForm.php, line 37

Class

ConfigTranslationAddForm
Defines a form for adding configuration translations.

Namespace

Drupal\config_translation\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $this
    ->messenger()
    ->addStatus($this
    ->t('Successfully saved @language translation.', [
    '@language' => $this->language
      ->getName(),
  ]));
}