public function getFilteredPages()
    {
        $pages = Versioned::get_including_deleted(SiteTree::class);
        $pages = $this->applyDefaultFilters($pages);

        $pages = $pages->filterByCallback(function (SiteTree $page) {
            // Doesn't exist on either stage or live
            return $page->isArchived();
        });
        return $pages;
    }
public function getFilteredPages()
    {
        $pages = Versioned::get_including_deleted(SiteTree::class);
        $pages = $this->applyDefaultFilters($pages);

        $pages = $pages->filterByCallback(function (SiteTree $page) {
            // Doesn't exist on either stage or live
            return $page->isArchived();
        });
        return $pages;
    }
public function getFilteredPages ( ) { $ pages = Versioned :: get_including_deleted ( SiteTree :: class ) ; $ pages = $ this -> applyDefaultFilters ( $ pages ) ; $ pages = $ pages -> filterByCallback ( function ( SiteTree $ page ) { // Doesn't exist on either stage or live return $ page -> isArchived ( ) ; } ) ; return $ pages ; }
Filters out all pages who's status is set to "Deleted".

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