Add a shortcut for pages.find() alias

This commit is contained in:
Andy Miller
2016-03-31 16:14:52 -06:00
parent 7158dd9beb
commit fbb51cffac

View File

@@ -287,6 +287,19 @@ class Pages
return new Collection($children, [], $this);
}
/**
* alias method to return find a page.
*
* @param string $url The relative URL of the page
* @param bool $all
*
* @return Page|null
*/
public function find($url, $all = false)
{
return $this->dispatch($url, $all);
}
/**
* Dispatch URI to a page.
*