Piwik\Plugins\CoreVisualizations\Visualizations\Sparklines\Config::getUrlSparkline PHP Метод

getUrlSparkline() приватный Метод

The result of this URL should be used with the sparkline() twig function. The current site ID and period will be used.
private getUrlSparkline ( array $customParameters = [] ) : string
$customParameters array The array of query parameter name/value pairs that should be set in result URL.
Результат string The generated URL.
    private function getUrlSparkline($customParameters = array())
    {
        $customParameters['viewDataTable'] = 'sparkline';
        $params = $this->getGraphParamsModified($customParameters);
        // convert array values to comma separated
        foreach ($params as &$value) {
            if (is_array($value)) {
                $value = rawurlencode(implode(',', $value));
            }
        }
        $url = Url::getCurrentQueryStringWithParametersModified($params);
        return $url;
    }