Skip to content

Commit

Permalink
API Set extension hook implementation visibility to protected
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed May 16, 2024
1 parent 64b7610 commit b4e73a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public function appCategory()
/**
* Should be called after the file was uploaded
*/
public function onAfterUpload()
protected function onAfterUpload()
{
$this->extend('onAfterUpload');
}
Expand Down Expand Up @@ -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) &&
Expand Down
2 changes: 1 addition & 1 deletion src/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
4 changes: 2 additions & 2 deletions src/Shortcodes/FileLinkTracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit b4e73a6

Please sign in to comment.