public function TranslatorPluginUiBase::submitConnect

Handles submit call of "Connect" button.

File

src/TranslatorPluginUiBase.php, line 94

Class

TranslatorPluginUiBase
Default ui controller class for translator plugins.

Namespace

Drupal\tmgmt

Code

public function submitConnect(array $form, FormStateInterface $form_state) {

  // When this method is called the form already passed validation and we can
  // assume that credentials are valid.
  $this
    ->messenger()
    ->addStatus(t('Successfully connected!'));
}