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 20, 2024
1 parent a1b113a commit cc8ca2f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Extensions/ContentReviewDefaultSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function OwnerUsers()
/**
* @param FieldList $fields
*/
public function updateCMSFields(FieldList $fields)
protected function updateCMSFields(FieldList $fields)
{
$helpText = LiteralField::create(
'ContentReviewHelp',
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions/ContentReviewLeftAndMainExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ContentReviewLeftAndMainExtension extends LeftAndMainExtension
*
* @param array &$clientConfig
*/
public function updateClientConfig(&$clientConfig)
protected function updateClientConfig(&$clientConfig)
{
$clientConfig['form']['ReviewContentForm'] = [
'schemaUrl' => $this->owner->Link('schema/ReviewContentForm')
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions/ContentReviewOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ContentReviewOwner extends DataExtension
"SiteTreeContentReview" => SiteTree::class,
];

public function updateCMSFields(FieldList $fields)
protected function updateCMSFields(FieldList $fields)
{
// Remove automatically scaffolded GridField in Member CMS fields
$fields->removeByName('SiteTreeContentReview');
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/SiteTreeContentReview.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public static function merge_owners(SS_List $groups, SS_List $members)
/**
* @param FieldList $actions
*/
public function updateCMSActions(FieldList $actions)
protected function updateCMSActions(FieldList $actions)
{
if (!$this->canBeReviewedBy(Security::getCurrentUser())) {
return;
Expand Down Expand Up @@ -326,7 +326,7 @@ public function OwnerUsers()
/**
* @param FieldList $fields
*/
public function updateSettingsFields(FieldList $fields)
protected function updateSettingsFields(FieldList $fields)
{
if ($this->owner->hasMethod('displayContentReview') && !$this->owner->displayContentReview()) {
return;
Expand Down Expand Up @@ -564,7 +564,7 @@ public function canBeReviewedBy(Member $member = null)
/**
* Set the review data from the review period, if set.
*/
public function onBeforeWrite()
protected function onBeforeWrite()
{
// Only update if DB fields have been changed
$changedFields = $this->owner->getChangedFields(true, 2);
Expand Down

0 comments on commit cc8ca2f

Please sign in to comment.