From 025bd6a9306055ecd6704d6965fbe729f8593f21 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 15 Aug 2024 15:54:01 +1200 Subject: [PATCH] API Remove CMSEditLink implementation, rely on superclass instead. --- code/Model/SiteTree.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/code/Model/SiteTree.php b/code/Model/SiteTree.php index 5d33539ad7..4fbdc45640 100755 --- a/code/Model/SiteTree.php +++ b/code/Model/SiteTree.php @@ -285,7 +285,6 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi 'Link' => 'Text', 'RelativeLink' => 'Text', 'AbsoluteLink' => 'Text', - 'CMSEditLink' => 'Text', 'TreeTitle' => 'HTMLFragment', 'MetaTags' => 'HTMLFragment', ]; @@ -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. *