src/Sulu/Bundle/PageBundle/Repository/NodeRepository.php
private function getParentNode($parent, $webspaceKey, $languageCode)
    {
        if (null != $parent) {
            return $this->getMapper()->load($parent, $webspaceKey, $languageCode);
        } else {
            return $this->getMapper()->loadStartPage($webspaceKey, $languageCode);
        }
    }
private function getParentNode($parent, $webspaceKey, $languageCode)
    {
        if (null != $parent) {
            return $this->getMapper()->load($parent, $webspaceKey, $languageCode);
        } else {
            return $this->getMapper()->loadStartPage($webspaceKey, $languageCode);
        }
    }
private function getParentNode ( $ parent , $ webspaceKey , $ languageCode ) { if ( null != $ parent ) { return $ this -> getMapper ( ) -> load ( $ parent , $ webspaceKey , $ languageCode ) ; } else { return $ this -> getMapper ( ) -> loadStartPage ( $ webspaceKey , $ languageCode ) ; } }
if parent is null return home page else the page with given uuid.

@param string|null $parent uuid of parent node
@param string $webspaceKey
@param string $languageCode

@return StructureInterface
if parent is null return home page else the page with given uuid .