From b4e73a62211708dcb1707cfab429ee916f683932 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 16 May 2024 17:21:13 +1200 Subject: [PATCH] API Set extension hook implementation visibility to protected --- src/File.php | 4 ++-- src/Folder.php | 2 +- src/Shortcodes/FileLinkTracking.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/File.php b/src/File.php index 7f085d46..60641b58 100644 --- a/src/File.php +++ b/src/File.php @@ -672,7 +672,7 @@ public function appCategory() /** * Should be called after the file was uploaded */ - public function onAfterUpload() + protected function onAfterUpload() { $this->extend('onAfterUpload'); } @@ -750,7 +750,7 @@ protected function onAfterDelete() $this->updateDependantObjects(); } - public function onAfterRevertToLive() + protected function onAfterRevertToLive() { // Force query of draft object and update (as source record is bound to live stage) if (class_exists(Versioned::class) && diff --git a/src/Folder.php b/src/Folder.php index f5efc563..d66ca508 100644 --- a/src/Folder.php +++ b/src/Folder.php @@ -276,7 +276,7 @@ public function updateFilesystem() /** * If a write is skipped due to no changes, ensure that nested records still get asked to update */ - public function onAfterSkippedWrite() + protected function onAfterSkippedWrite() { $this->updateChildFilesystem(); } diff --git a/src/Shortcodes/FileLinkTracking.php b/src/Shortcodes/FileLinkTracking.php index 3ca68d9f..12409103 100644 --- a/src/Shortcodes/FileLinkTracking.php +++ b/src/Shortcodes/FileLinkTracking.php @@ -106,7 +106,7 @@ public function syncLinkTracking() /** * Find HTMLText fields on {@link owner} to scrape for links that need tracking */ - public function augmentSyncLinkTracking() + protected function augmentSyncLinkTracking() { // If owner is versioned, skip tracking on live if (class_exists(Versioned::class) && @@ -223,7 +223,7 @@ protected function toggleElementClass(DOMElement $domReference, $class, $toggle) } } - public function updateCMSFields(FieldList $fields) + protected function updateCMSFields(FieldList $fields) { if (!$this->owner->config()->get('show_file_link_tracking')) { $fields->removeByName('FileTracking');