public function TranslatorPluginUiBase::submitConnect in Translation Management Tool 8
Handles submit call of "Connect" button.
File
- src/
TranslatorPluginUiBase.php, line 94
Class
- TranslatorPluginUiBase
- Default ui controller class for translator plugins.
Namespace
Drupal\tmgmtCode
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!'));
}