mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
API Add a missing alternatePreviewLink hook for SiteTree extensions.
This commit is contained in:
parent
2567cda0b4
commit
bccd2f8e51
@ -446,8 +446,12 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
* @return string
|
||||
*/
|
||||
public function PreviewLink($action = null) {
|
||||
if($this->hasMethod('alternatePreviewLink')) {
|
||||
return $this->alternatePreviewLink($action);
|
||||
} else {
|
||||
return $this->AbsoluteLink($action);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the link for this {@link SiteTree} object relative to the SilverStripe root.
|
||||
|
Loading…
Reference in New Issue
Block a user