Twig/Extension/DataSourceExtension.php
public function setRoute(DataSourceViewInterface $dataSource, $route, array $additional_parameters = [])
    {
        $this->routes[$dataSource->getName()] = $route;
        $this->additional_parameters[$dataSource->getName()] = $additional_parameters;
    }
public function setRoute(DataSourceViewInterface $dataSource, $route, array $additional_parameters = [])
    {
        $this->routes[$dataSource->getName()] = $route;
        $this->additional_parameters[$dataSource->getName()] = $additional_parameters;
    }
public function setRoute ( DataSourceViewInterface $ dataSource , $ route , array $ additional_parameters = [ ] ) { $ this -> routes [ $ dataSource -> getName ( ) ] = $ route ; $ this -> additional_parameters [ $ dataSource -> getName ( ) ] = $ additional_parameters ; }
Set route and optionally additional parameters for specific DataSource.

@param DataSourceViewInterface $dataSource
@param $route
@param array $additional_parameters
Set route and optionally additional parameters for specific DataSource .