Merge branch '4' into 5.0

This commit is contained in:
Guy Sartorelli 2023-04-27 14:44:59 +12:00
commit ca837d6ccd
No known key found for this signature in database
GPG Key ID: F313E3B9504D496A
2 changed files with 6 additions and 4 deletions

View File

@ -735,13 +735,15 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
/**
* Generates a link to edit this page in the CMS.
*
* Implemented here to satisfy the CMSPreviewable interface, but data is intended to be loaded via Extension
*
* @see SilverStripe\Admin\CMSEditLinkExtension
*
* @return string
*/
public function CMSEditLink()
{
// This method has to be implemented here to satisfy the CMSPreviewable interface.
// See the actual implementation in CMSEditLinkExtension.
return $this->extend('CMSEditLink')[0];
return $this->extend('CMSEditLink')[0] ?? '';
}
/**

View File

@ -55,4 +55,4 @@
},
"prefer-stable": true,
"minimum-stability": "dev"
}
}