mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge branch '4.13' into 4
This commit is contained in:
commit
8317309864
@ -741,13 +741,15 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
|||||||
/**
|
/**
|
||||||
* Generates a link to edit this page in the CMS.
|
* 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
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function CMSEditLink()
|
public function CMSEditLink()
|
||||||
{
|
{
|
||||||
// This method has to be implemented here to satisfy the CMSPreviewable interface.
|
return $this->extend('CMSEditLink')[0] ?? '';
|
||||||
// See the actual implementation in CMSEditLinkExtension.
|
|
||||||
return $this->extend('CMSEditLink')[0];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -45,11 +45,14 @@
|
|||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"SilverStripe\\CMS\\": ["code/", "_legacy/"],
|
"SilverStripe\\CMS\\": [
|
||||||
|
"code/",
|
||||||
|
"_legacy/"
|
||||||
|
],
|
||||||
"SilverStripe\\CMS\\Tests\\": "code/php/",
|
"SilverStripe\\CMS\\Tests\\": "code/php/",
|
||||||
"SilverStripe\\CMS\\Tests\\Behaviour\\": "tests/behat/src/"
|
"SilverStripe\\CMS\\Tests\\Behaviour\\": "tests/behat/src/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"minimum-stability": "dev"
|
"minimum-stability": "dev"
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user