Returns the home page.

@return PageInterface|null
171585
public function getHomePage(): ?PageInterface
    {
        if (false === $this->homePage) {
            $this->homePage = $this->findByRoute($this->homeRoute);
        }

        return $this->homePage;
    }
608637
public function getActPage()
    {
        $lastPage = $this->getPagesCount();
        $currentPage = parent::getActPage();

        if ($currentPage >= $lastPage) {
            $currentPage = $lastPage - 1;
        }

        return $currentPage;
    }
1112822
protected function getHomeDirectory()
    {
        $home = getenv('HOME');
        if (!$home && ($userProfile = getenv('USERPROFILE'))) {
            $home = $userProfile;
        }
        if (!$home || !is_dir($home)) {
            throw new \RuntimeException('Could not determine home directory');
        }

        return $home;
    }
161363
public static function getHomepage($columnName = '')
    {
        if($columnName) {
            if(isset(self::$homepage->$columnName)) {
                return self::$homepage->$columnName;
            }
            return null;
        }
        return self::$homepage;
    }
349228
public function getPreviousPage()
    {
        $previousPageIndex = $this->currentPage->getIndex() - 1;
        if (!$this->formDefinition->hasPageWithIndex($previousPageIndex)) {
            return null;
        }
        return $this->formDefinition->getPageByIndex($previousPageIndex);
    }
455366
public function getHomePath()
    {
        $unixHome = getenv('HOME');

        if (!empty($unixHome)) {
            return $unixHome;
        }

        $windowsHome = getenv('USERPROFILE');
        if (!empty($windowsHome)) {
            return $windowsHome;
        }

        $windowsHome = getenv('HOMEPATH');
        if (!empty($windowsHome)) {
            return getenv('HOMEDRIVE') . getenv('HOMEPATH');
        }

        throw new \Exception('Could not get the users\'s home path');
    }
981181
public function getCurrentPage()
    {
        $givenRelativeFile = str_replace(
            $this->environment->getSourceDirectory(),
            '',
            $this->environment->getSourceFile()
        );

        return str_replace('.twig', '', $givenRelativeFile);
    }
1186794
public function current()
    {
        // Getting the first page
        if ($this->currentPage === null) {
            $data = $this->api->searchWithBody($this->body);
            if (isset($data['next_page_token'])) {
                $this->nextPage = $data['next_page_token'];
            }

            return $data;
        }

        // Getting another page
        $body = array_merge($this->body, ['pagetoken' => $this->currentPage]);
        $data = $this->api->searchWithBody($body);
        if (isset($data['next_page_token'])) {
            $this->nextPage = $data['next_page_token'];
        } else {
            $this->nextPage = null;
        }

        return $data;
    }
509973
protected function visitorGetPageObj()
	{
	    $objPage = null;
	    $pageId  = null;
	    
	    $pageId = $this->getPageIdFromUrl(); // Alias, not ID :-(
	    // Load a website root page object if there is no page ID
	    if ($pageId === null)
	    {
	        $pageId = $this->visitorGetRootPageFromUrl();
	    }
	    ModuleVisitorLog::writeLog(__METHOD__ , __LINE__ , 'Page ID over URL: '. $pageId);
	    // Get the current page object(s), NULL on type 404
	    $objPage = \PageModel::findPublishedByIdOrAlias($pageId);
	    
	    // Check the URL and language of each page if there are multiple results
	    if ($objPage !== null && $objPage->count() > 1)
	    {
	        $objNewPage = null;
	        $arrPages   = array();
	    
	        // Order by domain and language
	        while ($objPage->next())
	        {
	            $objCurrentPage = $objPage->current()->loadDetails();
	    
	            $domain = $objCurrentPage->domain ?: '*';
	            $arrPages[$domain][$objCurrentPage->rootLanguage] = $objCurrentPage;
	    
	            // Also store the fallback language
	            if ($objCurrentPage->rootIsFallback)
	            {
	                $arrPages[$domain]['*'] = $objCurrentPage;
	            }
	        }
	    
	        $strHost = \Environment::get('host');
	    
	        // Look for a root page whose domain name matches the host name
	        if (isset($arrPages[$strHost]))
	        {
	            $arrLangs = $arrPages[$strHost];
	        }
	        else
	        {
	            $arrLangs = $arrPages['*']; // empty domain
	        }
	    
	        // Use the first result (see #4872)
	        if (!$GLOBALS['TL_CONFIG']['addLanguageToUrl'])
	        {
	            $objNewPage = current($arrLangs);
	        }
	        // Try to find a page matching the language parameter
	        elseif (($lang = \Input::get('language')) != '' && isset($arrLangs[$lang]))
	        {
	            $objNewPage = $arrLangs[$lang];
	        }
	    
	        // Store the page object
	        if (is_object($objNewPage))
	        {
	            $objPage = $objNewPage;
	        }
	    }
	    elseif ($objPage !== null && $objPage->count() == 1)
	    {
	        $objPage = $objPage->current()->loadDetails();
	    }
	    elseif ($objPage === null)
	    {
	        //404 page aus dem Cache
	        $pageId = $this->visitorGetRootPageFromUrl(false);
	        $objPage = \PageModel::find404ByPid($pageId);
	        ModuleVisitorLog::writeLog(__METHOD__ , __LINE__ , 'Page Root ID / Page ID 404: '. $pageId .' / '.$objPage->id);
	    }
	    return $objPage;
	}
1237237
public function getContentLibrary()
    {
        return $this->contentLibrary == null ?
            $this->contentLibrary = new PageContentLibraryImpl($this->container, $this) :
            $this->contentLibrary;
    }
446704
private function createGlobalSubject()
    {
        if (null !== $home = $this->pageHelper->getHomePage()) {
            return $this->createSubjectFromPage($home);
        }
        return null;
    }
910614
protected function get_home_label() {
		$page_on_front = get_option( 'page_on_front' );
		$home_label = __( 'Home', 'inc2734-wp-breadcrumbs' );
		if ( $page_on_front ) {
			$home_label = get_the_title( $page_on_front );
		}
		return $home_label;
	}
585526
public function getCurrentPagePath()
    {

        if ($this->currentPagePath != null) {
            return $this->currentPagePath;
        }


        $pageOrderArray = $this->pageOrder->getPageOrder();
        $path = $this->GETValueOfIndexIfSetElseDefault('page', false);


        if (!empty($path) && !empty($pagePath = $this->getPathArrayFromString($path, $pageOrderArray))) {
            return $this->currentPagePath = $pagePath;
        }

        if (!empty($pageOrderArray) && empty($path)) {
            return $this->currentPagePath = [array_shift($pageOrderArray)];
        }

        return $this->currentPagePath = [new NotFoundPageImpl($this->container)];
    }
1242076
public function getPage()
    {
        $page = isset($this->requestParams[self::PARAM_PAGE]) ? $this->requestParams[self::PARAM_PAGE] : self::DEFAULT_PAGE;
        return (integer)$page;
    }
1024812
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;
        }
    }
24270
public function home()
    {
        $json = $this->container->json;

        // Get Piton Engine version from composer.lock
        if (null === $definition = $json->getJson(ROOT_DIR . '/composer.lock')) {
            $this->setAlert('danger', 'Error Reading composer.lock', $json->getErrorMessages());
        }

        $engineKey = array_search('pitoncms/engine', array_column($definition->packages, 'name'));
        $engineVersion = $definition->packages[$engineKey]->version;

        return $this->render('home.html', ['pitonEngineVersion' => $engineVersion]);
    }
591243
public function getPreviousPage()
    {
        return ($this->record)
            ? $this->getManifest()->getPreviousPage(
                $this->record->getPath(),
                $this->getEntity()->getPath()
            )
            : null;
    }