public function root()
    {
        /** @var UniformResourceLocator $locator */
        $locator = $this->grav['locator'];

        return $this->instances[rtrim($locator->findResource('page://'), DS)];
    }
public function root()
    {
        /** @var UniformResourceLocator $locator */
        $locator = $this->grav['locator'];

        return $this->instances[rtrim($locator->findResource('page://'), DS)];
    }
public function root ( ) { /** @var UniformResourceLocator $locator */ $ locator = $ this -> grav [ 'locator' ] ; return $ this -> instances [ rtrim ( $ locator -> findResource ( 'page://' ) , DS ) ] ; }
Get root page.

@return PageInterface
Get root page .