public function SourceOverviewForm::sourceSelectSubmit in Translation Management Tool 8
File
- src/Form/ SourceOverviewForm.php, line 260 
Class
- SourceOverviewForm
- Source overview form.
Namespace
Drupal\tmgmt\FormCode
public function sourceSelectSubmit(array &$form, FormStateInterface $form_state) {
  // Separate the plugin and source type.
  $source = $form_state
    ->getValue('source');
  // Redirect to the selected source type.
  $form_state
    ->setRedirectUrl($this
    ->getUrlForSource($source));
}