Piwik\Plugins\Goals\Reports\Get::configureReportMetadata PHP Method

configureReportMetadata() public method

public configureReportMetadata ( &$availableReports, $infos )
    public function configureReportMetadata(&$availableReports, $infos)
    {
        if (!$this->isEnabled()) {
            return;
        }
        parent::configureReportMetadata($availableReports, $infos);
        $this->addReportMetadataForEachGoal($availableReports, $infos, function ($goal) {
            return Piwik::translate('Goals_GoalX', $goal['name']);
        });
    }