Skip to content

Commit

Permalink
API Remove CMSEditLink implementation, rely on superclass instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 15, 2024
1 parent e58c388 commit 025bd6a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions code/Model/SiteTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
'Link' => 'Text',
'RelativeLink' => 'Text',
'AbsoluteLink' => 'Text',
'CMSEditLink' => 'Text',
'TreeTitle' => 'HTMLFragment',
'MetaTags' => 'HTMLFragment',
];
Expand Down Expand Up @@ -758,20 +757,6 @@ public function getAbsoluteLiveLink($includeStageEqualsLive = true)
return $link;
}

/**
* 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()
{
return $this->extend('CMSEditLink')[0] ?? '';
}

/**
* Return a CSS identifier generated from this page's link.
*
Expand Down

0 comments on commit 025bd6a

Please sign in to comment.