public function getFilteredPages()
    {
        $pages = Versioned::get_by_stage(SiteTree::class, 'Stage');
        $pages = $this->applyDefaultFilters($pages);
        $pages = $pages->filterByCallback(function (SiteTree $page) {
            // If page exists on stage but not on live
            return $page->isOnDraftOnly();
        });
        return $pages;
    }
public function getFilteredPages()
    {
        $pages = Versioned::get_by_stage(SiteTree::class, 'Stage');
        $pages = $this->applyDefaultFilters($pages);
        $pages = $pages->filterByCallback(function (SiteTree $page) {
            // If page exists on stage but not on live
            return $page->isOnDraftOnly();
        });
        return $pages;
    }
public function getFilteredPages ( ) { $ pages = Versioned :: get_by_stage ( SiteTree :: class , 'Stage' ) ; $ pages = $ this -> applyDefaultFilters ( $ pages ) ; $ pages = $ pages -> filterByCallback ( function ( SiteTree $ page ) { // If page exists on stage but not on live return $ page -> isOnDraftOnly ( ) ; } ) ; return $ pages ; }
Filters out all pages who's status is set to "Draft".

@see {@link SiteTree::getStatusFlags()}
@return SS_List
Filters out all pages who s status is set to Draft .