You are here

public function SourceOverviewForm::getUrlForSource in Translation Management Tool 8

Gets the url when selecting a source type.

Parameters

string $source:

Return value

\Drupal\Core\Url

1 call to SourceOverviewForm::getUrlForSource()
SourceOverviewForm::sourceSelectSubmit in src/Form/SourceOverviewForm.php

File

src/Form/SourceOverviewForm.php, line 306

Class

SourceOverviewForm
Source overview form.

Namespace

Drupal\tmgmt\Form

Code

public function getUrlForSource($source) {
  list($selected_plugin, $selected_item_type) = explode(':', $source);
  return Url::fromRoute('tmgmt.source_overview', array(
    'plugin' => $selected_plugin,
    'item_type' => $selected_item_type,
  ));
}