SilverStripe\CMS\Controllers\OldPageRedirector::find_old_page
Attempt to find an old/renamed page from some given the URL as an array
Signature
public function find_old_page(array
$params,
[SiteTree|null
$parent = NULL,
[boolean
$redirect = false]] )
Parameters
$params
—
array
- The array of URL, e.g. /foo/bar as ['foo', 'bar']
$parent
—
object
- The current parent in the recursive flow
$redirect
—
boolean
- Whether we've found an old page worthy of a redirect
Returns
- string|boolean
- False, or the new URL