ConfigTranslationAddForm::submitForm

public ConfigTranslationAddForm::submitForm(array &$form, FormStateInterface $form_state)

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 35

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);
  drupal_set_message($this->t('Successfully saved @language translation.', array('@language' => $this->language->getName())));
}
doc_Drupal
2016-10-29 08:54:38
Comments
Leave a Comment

Please login to continue.