This commit is contained in:
Damian Mooyman 2017-11-01 17:19:04 +13:00
parent 0946332915
commit 6c2d5311d3
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A

View File

@ -4,6 +4,7 @@ namespace SilverStripe\CMS\Reports;
use SilverStripe\CMS\Model\RedirectorPage; use SilverStripe\CMS\Model\RedirectorPage;
use SilverStripe\CMS\Model\SiteTree; use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\ORM\DataList;
use SilverStripe\Reports\Report; use SilverStripe\Reports\Report;
class EmptyPagesReport extends Report class EmptyPagesReport extends Report
@ -24,6 +25,12 @@ class EmptyPagesReport extends Report
return 100; return 100;
} }
/**
* Gets the source records
*
* @param array $params
* @return DataList
*/
public function sourceRecords($params = null) public function sourceRecords($params = null)
{ {
return SiteTree::get() return SiteTree::get()