public function find($url, $all = false)
    {
        /** @var Pages $pages */
        $pages = Grav::instance()['pages'];

        return $pages->find($url, $all);
    }
public function find($url, $all = false)
    {
        /** @var Pages $pages */
        $pages = Grav::instance()['pages'];

        return $pages->find($url, $all);
    }
public function find ( $ url , $ all = false ) { /** @var Pages $pages */ $ pages = Grav :: instance ( ) [ 'pages' ] ; return $ pages -> find ( $ url , $ all ) ; }
Helper method to return a page.

@param string $url the url of the page
@param bool $all

@return PageInterface page you were looking for if it exists
Helper method to return a page .