Adds a related report to the {@link $related_reports} property. If the report
references the one that is currently being displayed, it will not be added to the related
report list.
public addRelatedReport ( string $relatedReport, string $title, array $queryParams = [] ) | ||
$relatedReport | string | The plugin and method of the report, eg, `'DevicesDetection.getBrowsers'`. |
$title | string | The report's display name, eg, `'Browsers'`. |
$queryParams | array | Any extra query parameters to set in releated report's URL, eg, `array('idGoal' => 'ecommerceOrder')`. |