Skip to content

Commit

Permalink
Merge pull request #108 from creative-commoners/pulls/4/protect-hooks
Browse files Browse the repository at this point in the history
API Set extension hook implementation visibility to protected
  • Loading branch information
GuySartorelli authored May 21, 2024
2 parents de10b46 + c61d9ff commit 663e34e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/VersionFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down Expand Up @@ -171,7 +171,7 @@ public function getDiff()
return null;
}

public function updateSettingsFields(FieldList $fields)
protected function updateSettingsFields(FieldList $fields)
{
if (!$this->owner->config()->get('changes_enabled')) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/VersionFeedController.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function filterContent($key, $callback)
}
}

public function onAfterInit()
protected function onAfterInit()
{
$this->linkToPageRSSFeed();
$this->linkToAllSiteRSSFeed();
Expand Down
4 changes: 2 additions & 2 deletions src/VersionFeedSiteConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 663e34e

Please sign in to comment.