You are here

public function CustomLanguageListBuilder::submitForm in Custom Language field 8

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

File

src/CustomLanguageListBuilder.php, line 64

Class

CustomLanguageListBuilder
Defines a class to build a listing of Custom Languages.

Namespace

Drupal\languagefield

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $this
    ->messenger()
    ->addStatus($this
    ->t('The language has been updated.'));
}