src/Contao/Picker/AbstractAwarePickerProvider.php
private function generateUrl(PickerConfig $config, $ignoreValue)
    {
        $params = \array_merge(
            $this->getRouteParameters($ignoreValue ? null : $config),
            [
                'popup'  => '1',
                'picker' => $config->cloneForCurrent($this->getName())->urlEncode(),
            ]
        );

        return $this->router->generate('cca_dc_general_tree', $params);
    }
private function generateUrl(PickerConfig $config, $ignoreValue)
    {
        $params = \array_merge(
            $this->getRouteParameters($ignoreValue ? null : $config),
            [
                'popup'  => '1',
                'picker' => $config->cloneForCurrent($this->getName())->urlEncode(),
            ]
        );

        return $this->router->generate('cca_dc_general_tree', $params);
    }
private function generateUrl ( PickerConfig $ config , $ ignoreValue ) { $ params = \ array_merge ( $ this -> getRouteParameters ( $ ignoreValue ? null : $ config ) , [ 'popup' => '1' , 'picker' => $ config -> cloneForCurrent ( $ this -> getName ( ) ) -> urlEncode ( ) , ] ) ; return $ this -> router -> generate ( 'cca_dc_general_tree' , $ params ) ; }
Generates the URL for the picker.

@param PickerConfig $config      The configuration.
@param bool         $ignoreValue Determine by get the route parameter the picker config ignore.

@return string
Generates the URL for the picker .