original_string: public function ancestor($lookup = null)
      {
          /** @var Pages $pages */
          $pages = Grav::instance()['pages'];
  
          return $pages->ancestor($this->route, $lookup);
      }
code: public function ancestor($lookup = null)
      {
          /** @var Pages $pages */
          $pages = Grav::instance()['pages'];
  
          return $pages->ancestor($this->route, $lookup);
      }
code_tokens: public function ancestor ( $ lookup = null ) { /** @var Pages $pages */ $ pages = Grav :: instance ( ) [ 'pages' ] ; return $ pages -> ancestor ( $ this -> route , $ lookup ) ; }
docstring: Helper method to return an ancestor page.
  
  @param bool $lookup Name of the parent folder
  
  @return PageInterface page you were looking for if it exists
docstring_tokens: Helper method to return an ancestor page .