function ConfigTranslationEditForm::submitForm

Same name in other branches
  1. 8.9.x core/modules/config_translation/src/Form/ConfigTranslationEditForm.php \Drupal\config_translation\Form\ConfigTranslationEditForm::submitForm()
  2. 10 core/modules/config_translation/src/Form/ConfigTranslationEditForm.php \Drupal\config_translation\Form\ConfigTranslationEditForm::submitForm()
  3. 11.x core/modules/config_translation/src/Form/ConfigTranslationEditForm.php \Drupal\config_translation\Form\ConfigTranslationEditForm::submitForm()

Overrides ConfigTranslationFormBase::submitForm

File

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

Class

ConfigTranslationEditForm
Defines a form for editing 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 updated @language translation.', [
        '@language' => $this->language
            ->getName(),
    ]));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.