diff --git a/src/Api/CMSEditLinkAPI.php b/src/Api/CMSEditLinkAPI.php index bdd7a11..1fca388 100644 --- a/src/Api/CMSEditLinkAPI.php +++ b/src/Api/CMSEditLinkAPI.php @@ -23,6 +23,7 @@ class CMSEditLinkAPI * { * return CMSEditLinkAPI::find_edit_link_for_object($this, $action); * }; + * returns an empty string if not found! * * @param DataObject|string $objectOrClassName * @param string $action @@ -124,10 +125,7 @@ public static function find_edit_link_for_object($objectOrClassName, $action = n ); } - return Controller::join_links( - Director::baseURL(), - 'admin/not-found' - ); + return ''; } protected static function sanitize_class_name(string $className) : string