public function SourceOverviewForm::getUrlForSource in Translation Management Tool 8
Gets the url when selecting a source type.
Parameters
string $source:
Return value
1 call to SourceOverviewForm::getUrlForSource()
File
- src/
Form/ SourceOverviewForm.php, line 306
Class
- SourceOverviewForm
- Source overview form.
Namespace
Drupal\tmgmt\FormCode
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,
));
}