protected function resetHome()
    {
        try {
            $page = $this->pageRepository->homePage();
            if (null !== $page) {
                return $this->pageRepository
                            ->setRepositoryObject($page)
                            ->save(array('IsHome' => 0));
            }

            return true;
        } catch (\Exception $e) {
            throw $e;
        }
    }
protected function resetHome()
    {
        try {
            $page = $this->pageRepository->homePage();
            if (null !== $page) {
                return $this->pageRepository
                            ->setRepositoryObject($page)
                            ->save(array('IsHome' => 0));
            }

            return true;
        } catch (\Exception $e) {
            throw $e;
        }
    }
protected function resetHome ( ) { try { $ page = $ this -> pageRepository -> homePage ( ) ; if ( null !== $ page ) { return $ this -> pageRepository -> setRepositoryObject ( $ page ) -> save ( array ( 'IsHome' => 0 ) ) ; } return true ; } catch ( \ Exception $ e ) { throw $ e ; } }
Degrades the home page to normal page

@return boolean
Degrades the home page to normal page