Twig/Extension/DataSourceExtension.php
private function getUrl(DataSourceViewInterface $dataSource, array $options = [], array $parameters = [])
    {
        $router = $this->container->get('router');

        return $router->generate(
            $options['route'],
            array_merge(
                isset($this->additional_parameters[$dataSource->getName()])
                    ? $this->additional_parameters[$dataSource->getName()]
                    : [],
                isset($options['additional_parameters'])
                    ? $options['additional_parameters']
                    : [],
                $parameters
            )
        );
    }
private function getUrl(DataSourceViewInterface $dataSource, array $options = [], array $parameters = [])
    {
        $router = $this->container->get('router');

        return $router->generate(
            $options['route'],
            array_merge(
                isset($this->additional_parameters[$dataSource->getName()])
                    ? $this->additional_parameters[$dataSource->getName()]
                    : [],
                isset($options['additional_parameters'])
                    ? $options['additional_parameters']
                    : [],
                $parameters
            )
        );
    }
private function getUrl ( DataSourceViewInterface $ dataSource , array $ options = [ ] , array $ parameters = [ ] ) { $ router = $ this -> container -> get ( 'router' ) ; return $ router -> generate ( $ options [ 'route' ] , array_merge ( isset ( $ this -> additional_parameters [ $ dataSource -> getName ( ) ] ) ? $ this -> additional_parameters [ $ dataSource -> getName ( ) ] : [ ] , isset ( $ options [ 'additional_parameters' ] ) ? $ options [ 'additional_parameters' ] : [ ] , $ parameters ) ) ; }
Return additional parameters that should be passed to the URL generation for specified datasource.

@param DataSourceViewInterface $dataSource
@return array
Return additional parameters that should be passed to the URL generation for specified datasource .