You are here

public function ConfigTranslationEditForm::submitForm in Drupal 8

Same name and namespace in other branches
  1. 9 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()

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/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(),
  ]));
}