src/CampaignAdmin.php
protected function getListItems()
    {
        $changesets = ChangeSet::get();
        // Filter out published items if disabled
        if (!$this->config()->get('show_published')) {
            $changesets = $changesets->filter('State', ChangeSet::STATE_OPEN);
        }
        // Filter out automatically created changesets
        if (!$this->config()->get('show_inferred')) {
            $changesets = $changesets->filter('IsInferred', 0);
        }
        return $changesets
            ->filterByCallback(function ($item) {
                /** @var ChangeSet $item */
                return ($item->canView());
            });
    }
protected function getListItems()
    {
        $changesets = ChangeSet::get();
        // Filter out published items if disabled
        if (!$this->config()->get('show_published')) {
            $changesets = $changesets->filter('State', ChangeSet::STATE_OPEN);
        }
        // Filter out automatically created changesets
        if (!$this->config()->get('show_inferred')) {
            $changesets = $changesets->filter('IsInferred', 0);
        }
        return $changesets
            ->filterByCallback(function ($item) {
                /** @var ChangeSet $item */
                return ($item->canView());
            });
    }
protected function getListItems ( ) { $ changesets = ChangeSet :: get ( ) ; // Filter out published items if disabled if ( ! $ this -> config ( ) -> get ( 'show_published' ) ) { $ changesets = $ changesets -> filter ( 'State' , ChangeSet :: STATE_OPEN ) ; } // Filter out automatically created changesets if ( ! $ this -> config ( ) -> get ( 'show_inferred' ) ) { $ changesets = $ changesets -> filter ( 'IsInferred' , 0 ) ; } return $ changesets -> filterByCallback ( function ( $ item ) { /** @var ChangeSet $item */ return ( $ item -> canView ( ) ) ; } ) ; }
Gets viewable list of campaigns

@return SS_List
Gets viewable list of campaigns