concrete/src/Page/Page.php
public static function getDraftsParentPage(Site $site = null)
    {
        $db = Database::connection();
        $site = $site ? $site : \Core::make('site')->getSite();
        $cParentID = $db->fetchColumn('select p.cID from PagePaths pp inner join Pages p on pp.cID = p.cID inner join SiteLocales sl on p.siteTreeID = sl.siteTreeID where cPath = ? and sl.siteID = ?', [Config::get('concrete.paths.drafts'), $site->getSiteID()]);
        return Page::getByID($cParentID);
    }
public static function getDraftsParentPage(Site $site = null)
    {
        $db = Database::connection();
        $site = $site ? $site : \Core::make('site')->getSite();
        $cParentID = $db->fetchColumn('select p.cID from PagePaths pp inner join Pages p on pp.cID = p.cID inner join SiteLocales sl on p.siteTreeID = sl.siteTreeID where cPath = ? and sl.siteID = ?', [Config::get('concrete.paths.drafts'), $site->getSiteID()]);
        return Page::getByID($cParentID);
    }
public static function getDraftsParentPage ( Site $ site = null ) { $ db = Database :: connection ( ) ; $ site = $ site ? $ site : \ Core :: make ( 'site' ) -> getSite ( ) ; $ cParentID = $ db -> fetchColumn ( 'select p.cID from PagePaths pp inner join Pages p on pp.cID = p.cID inner join SiteLocales sl on p.siteTreeID = sl.siteTreeID where cPath = ? and sl.siteID = ?' , [ Config :: get ( 'concrete.paths.drafts' ) , $ site -> getSiteID ( ) ] ) ; return Page :: getByID ( $ cParentID ) ; }
Get the drafts parent page for a specific site.

@param \Concrete\Core\Entity\Site\Site|null $site If not specified, we'll use the default site

@return \Concrete\Core\Page\Page
Get the drafts parent page for a specific site .