concrete/src/Page/Page.php
public function moveToRoot()
    {
        $db = Database::connection();
        $db->executeQuery('update Pages set cParentID = 0 where cID = ?', [$this->getCollectionID()]);
        $this->cParentID = 0;
        $this->rescanSystemPageStatus();
    }
public function moveToRoot()
    {
        $db = Database::connection();
        $db->executeQuery('update Pages set cParentID = 0 where cID = ?', [$this->getCollectionID()]);
        $this->cParentID = 0;
        $this->rescanSystemPageStatus();
    }
public function moveToRoot ( ) { $ db = Database :: connection ( ) ; $ db -> executeQuery ( 'update Pages set cParentID = 0 where cID = ?' , [ $ this -> getCollectionID ( ) ] ) ; $ this -> cParentID = 0 ; $ this -> rescanSystemPageStatus ( ) ; }
Make this page child of nothing, thus moving it to the root level.
Make this page child of nothing thus moving it to the root level .