concrete/src/Block/Block.php
public function getCollectionList()
    {
        $cArray = [];
        $bID = $this->getBlockID();
        if ($bID) {
            $db = Loader::db();
            $q = 'select DISTINCT Pages.cID from CollectionVersionBlocks inner join Pages on (CollectionVersionBlocks.cID = Pages.cID) inner join CollectionVersions on (CollectionVersions.cID = Pages.cID) where CollectionVersionBlocks.bID = ?';
            $r = $db->query($q, [$bID]);
            if ($r) {
                while ($row = $r->fetchRow()) {
                    $cArray[] = Page::getByID($row['cID'], 'RECENT');
                }
                $r->free();
            }
        }

        return $cArray;
    }
public function getCollectionList()
    {
        $cArray = [];
        $bID = $this->getBlockID();
        if ($bID) {
            $db = Loader::db();
            $q = 'select DISTINCT Pages.cID from CollectionVersionBlocks inner join Pages on (CollectionVersionBlocks.cID = Pages.cID) inner join CollectionVersions on (CollectionVersions.cID = Pages.cID) where CollectionVersionBlocks.bID = ?';
            $r = $db->query($q, [$bID]);
            if ($r) {
                while ($row = $r->fetchRow()) {
                    $cArray[] = Page::getByID($row['cID'], 'RECENT');
                }
                $r->free();
            }
        }

        return $cArray;
    }
public function getCollectionList ( ) { $ cArray = [ ] ; $ bID = $ this -> getBlockID ( ) ; if ( $ bID ) { $ db = Loader :: db ( ) ; $ q = 'select DISTINCT Pages.cID from CollectionVersionBlocks inner join Pages on (CollectionVersionBlocks.cID = Pages.cID) inner join CollectionVersions on (CollectionVersions.cID = Pages.cID) where CollectionVersionBlocks.bID = ?' ; $ r = $ db -> query ( $ q , [ $ bID ] ) ; if ( $ r ) { while ( $ row = $ r -> fetchRow ( ) ) { $ cArray [ ] = Page :: getByID ( $ row [ 'cID' ] , 'RECENT' ) ; } $ r -> free ( ) ; } } return $ cArray ; }
Gets a list of collections that include this block, along with area name, etc... used in the block_details.php page in the admin control panel.

@return \Concrete\Core\Page\Page[]
Gets a list of collections that include this block along with area name etc ... used in the block_details . php page in the admin control panel .