public function SourceOverviewForm::getUrlForSource

Gets the url when selecting a source type.

Parameters

string $source:

Return value

\Drupal\Core\Url

1 call to SourceOverviewForm::getUrlForSource()

File

src/Form/SourceOverviewForm.php, line 309

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