public function SourceOverviewForm::sourceSelectSubmit

File

src/Form/SourceOverviewForm.php, line 263

Class

SourceOverviewForm
Source overview form.

Namespace

Drupal\tmgmt\Form

Code

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));
}