update updateRelativeLink method signature in SiteTreeExtension

This commit is contained in:
Florian Thoma 2022-08-29 15:08:50 +10:00
parent a0dab67c22
commit a96cca3848
1 changed files with 3 additions and 1 deletions

View File

@ -75,13 +75,15 @@ abstract class SiteTreeExtension extends DataExtension
* before {@link SiteTree::RelativeLink()} calls {@link Controller::join_links()}
* on the $base and $action
*
* @param string &$link The URL of this page relative to siteroot including
* the action
* @param string &$base The URL of this page relative to siteroot, not including
* the action
* @param string|boolean &$action The action or subpage called on this page.
* (Legacy support) If this is true, then do not reduce the 'home' urlsegment
* to an empty link
*/
public function updateRelativeLink(&$base, &$action)
public function updateRelativeLink(&$link, &$base, &$action)
{
}
}