From ecbc8b304990b00e4c108996641deacb9c04bd60 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 16 May 2024 17:20:32 +1200 Subject: [PATCH] API Set extension hook implementation visibility to protected --- code/Controller/AssetAdminFile.php | 2 +- code/Extensions/CampaignAdminExtension.php | 2 +- code/Extensions/UsedOnTableExtension.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/Controller/AssetAdminFile.php b/code/Controller/AssetAdminFile.php index 7009e1073..278ad5fb8 100644 --- a/code/Controller/AssetAdminFile.php +++ b/code/Controller/AssetAdminFile.php @@ -35,7 +35,7 @@ class AssetAdminFile extends DataExtension */ private static $insert_height = 400; - public function updateCMSEditLink(&$link) + protected function updateCMSEditLink(&$link) { // Update edit link for this file to point to the new asset admin $controller = AssetAdmin::singleton(); diff --git a/code/Extensions/CampaignAdminExtension.php b/code/Extensions/CampaignAdminExtension.php index 20545d102..d4a517c2b 100644 --- a/code/Extensions/CampaignAdminExtension.php +++ b/code/Extensions/CampaignAdminExtension.php @@ -22,7 +22,7 @@ class CampaignAdminExtension extends Extension * @param array $actions * @param File $record */ - public function updatePopoverActions(&$actions, $record) + protected function updatePopoverActions(&$actions, $record) { if (!Permission::check('CMS_ACCESS_CampaignAdmin')) { return; diff --git a/code/Extensions/UsedOnTableExtension.php b/code/Extensions/UsedOnTableExtension.php index ddbfa309c..03b9511cd 100644 --- a/code/Extensions/UsedOnTableExtension.php +++ b/code/Extensions/UsedOnTableExtension.php @@ -19,7 +19,7 @@ class UsedOnTableExtension extends Extension /** * @var array $excludedClasses */ - public function updateUsageExcludedClasses(array &$excludedClasses) + protected function updateUsageExcludedClasses(array &$excludedClasses) { $excludedClasses[] = FileLink::class; $excludedClasses[] = Member::class; @@ -28,7 +28,7 @@ public function updateUsageExcludedClasses(array &$excludedClasses) /** * @param DataObject $dataObject|null */ - public function updateUsageDataObject(?DataObject &$dataObject) + protected function updateUsageDataObject(?DataObject &$dataObject) { if ($dataObject instanceof Folder) { $dataObject = null;