protected function isParentArchived()
    {
        if ($parentID = $this->ParentID) {
            /** @var SiteTree $parentPage */
            $parentPage = Versioned::get_latest_version(self::class, $parentID);
            if (!$parentPage || !$parentPage->isOnDraft()) {
                return true;
            }
        }
        return false;
    }
protected function isParentArchived()
    {
        if ($parentID = $this->ParentID) {
            /** @var SiteTree $parentPage */
            $parentPage = Versioned::get_latest_version(self::class, $parentID);
            if (!$parentPage || !$parentPage->isOnDraft()) {
                return true;
            }
        }
        return false;
    }
protected function isParentArchived ( ) { if ( $ parentID = $ this -> ParentID ) { /** @var SiteTree $parentPage */ $ parentPage = Versioned :: get_latest_version ( self :: class , $ parentID ) ; if ( ! $ parentPage || ! $ parentPage -> isOnDraft ( ) ) { return true ; } } return false ; }
Determine if this page references a parent which is archived, and not available in stage

@return bool True if there is an archived parent
Determine if this page references a parent which is archived and not available in stage