add a new extension hook to SiteTree::RelativeLink()

This commit is contained in:
Florian Thoma 2021-07-20 13:01:49 +10:00
parent 12c11e5308
commit 4d7874b4f2
1 changed files with 5 additions and 1 deletions

View File

@ -666,7 +666,11 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
$action = null;
}
return Controller::join_links($base, '/', $action);
$link = Controller::join_links($base, '/', $action);
$this->extend('updateFinalRelativeLink', $link);
return $link;
}
/**