From c61d9ffc6cf8b5fc73fea448cd0c66ed310efafb Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 16 May 2024 17:43:54 +1200 Subject: [PATCH] API Set extension hook implementation visibility to protected --- src/VersionFeed.php | 4 ++-- src/VersionFeedController.php | 2 +- src/VersionFeedSiteConfig.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/VersionFeed.php b/src/VersionFeed.php index 312129a..e968cbe 100644 --- a/src/VersionFeed.php +++ b/src/VersionFeed.php @@ -28,7 +28,7 @@ class VersionFeed extends SiteTreeExtension 'PublicHistory' => true ); - public function updateFieldLabels(&$labels) + protected function updateFieldLabels(&$labels) { $labels['PublicHistory'] = _t(__CLASS__ . '.LABEL', 'Make history public'); } @@ -171,7 +171,7 @@ class VersionFeed extends SiteTreeExtension return null; } - public function updateSettingsFields(FieldList $fields) + protected function updateSettingsFields(FieldList $fields) { if (!$this->owner->config()->get('changes_enabled')) { return; diff --git a/src/VersionFeedController.php b/src/VersionFeedController.php index 20102db..6a8701a 100644 --- a/src/VersionFeedController.php +++ b/src/VersionFeedController.php @@ -60,7 +60,7 @@ class VersionFeedController extends Extension } } - public function onAfterInit() + protected function onAfterInit() { $this->linkToPageRSSFeed(); $this->linkToAllSiteRSSFeed(); diff --git a/src/VersionFeedSiteConfig.php b/src/VersionFeedSiteConfig.php index 74a1624..077d647 100644 --- a/src/VersionFeedSiteConfig.php +++ b/src/VersionFeedSiteConfig.php @@ -24,12 +24,12 @@ class VersionFeedSiteConfig extends DataExtension 'AllChangesEnabled' => true ); - public function updateFieldLabels(&$labels) + protected function updateFieldLabels(&$labels) { $labels['AllChangesEnabled'] = _t(__CLASS__ . '.ALLCHANGESLABEL', 'Make global changes feed public'); } - public function updateCMSFields(FieldList $fields) + protected function updateCMSFields(FieldList $fields) { if (!Config::inst()->get(VersionFeed::class, 'allchanges_enabled')) { return;