Skip to content

Commit

Permalink
Merge pull request #1461 from creative-commoners/pulls/3/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 302278d + ecbc8b3 commit 596fb02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/Controller/AssetAdminFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion code/Extensions/CampaignAdminExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions code/Extensions/UsedOnTableExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 596fb02

Please sign in to comment.