function LanguageEditForm::save

Same name in other branches
  1. 9 core/modules/language/src/Form/LanguageEditForm.php \Drupal\language\Form\LanguageEditForm::save()
  2. 8.9.x core/modules/language/src/Form/LanguageEditForm.php \Drupal\language\Form\LanguageEditForm::save()
  3. 10 core/modules/language/src/Form/LanguageEditForm.php \Drupal\language\Form\LanguageEditForm::save()

Overrides EntityForm::save

File

core/modules/language/src/Form/LanguageEditForm.php, line 46

Class

LanguageEditForm
Controller for language edit forms.

Namespace

Drupal\language\Form

Code

public function save(array $form, FormStateInterface $form_state) {
    parent::save($form, $form_state);
    $form_state->setRedirectUrl($this->entity
        ->toUrl('collection'));
    $this->logger('language')
        ->notice('The %language (%langcode) language has been updated.', [
        '%language' => $this->entity
            ->label(),
        '%langcode' => $this->entity
            ->id(),
    ]);
}

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