original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Returns a URL to a sparkline image for a report served by the current plugin.
  
  The result of this URL should be used with the [sparkline()](/api-reference/Piwik/View#twig) twig function.
  
  The current site ID and period will be used.
  
  @param array $customParameters The array of query parameter name/value pairs that
  should be set in result URL.
  @return string The generated URL.
docstring_tokens: Returns a URL to a sparkline image for a report served by the current plugin .