Source of file AllLinksReports.php

Size: 0,480 Bytes - Last Modified: 2021-03-22T11:05:29+00:00

/var/www/docs.ssmods.com/process/src/src/Api/Providers/AllLinksReports.php

12345678910111213141516171819202122
<?php

namespace Sunnysideup\TemplateOverview\Api\Providers;

use SilverStripe\Reports\Report;
use Sunnysideup\TemplateOverview\Api\AllLinksProviderBase;

class AllLinksReports extends AllLinksProviderBase
{
    public function getAllLinksInner(): array
    {
        $array = [];
        $reports = Report::get_reports();
        foreach ($reports as $report) {
            $link = $report->getLink();
            $array[$link] = $link;
        }

        return $array;
    }
}