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 6cf3faa commit b970d53
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Extensions/AdvancedWorkflowExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function updateEditForm(Form $form)
/**
* @param Form $form
*/
public function updateItemEditForm($form)
protected function updateItemEditForm($form)
{
/** @var DataObject $record */
$record = $form->getRecord();
Expand Down
4 changes: 2 additions & 2 deletions src/Extensions/FileWorkflowApplicable.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
*/
class FileWorkflowApplicable extends WorkflowApplicable
{
public function updateSummaryFields(&$fields)
protected function updateSummaryFields(&$fields)
{
$fields['ID'] = 'ID';
$fields['ParentID'] = 'ParentID';
}

public function updateCMSFields(FieldList $fields)
protected function updateCMSFields(FieldList $fields)
{
if (!$this->owner->ID) {
return $fields;
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/WorkflowApplicable.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ public function isPublishJobRunning()
*/
protected $currentInstance;

public function updateSettingsFields(FieldList $fields)
protected function updateSettingsFields(FieldList $fields)
{
$this->updateFields($fields);
}

public function updateCMSFields(FieldList $fields)
protected function updateCMSFields(FieldList $fields)
{
if (!$this->owner->hasMethod('getSettingsFields')) {
$this->updateFields($fields);
Expand Down Expand Up @@ -184,7 +184,7 @@ public function updateFields(FieldList $fields)
}
}

public function updateCMSActions(FieldList $actions)
protected function updateCMSActions(FieldList $actions)
{
$active = $this->getWorkflowService()->getWorkflowFor($this->owner);
$c = Controller::curr();
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/WorkflowEmbargoExpiryExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class WorkflowEmbargoExpiryExtension extends DataExtension
/**
* @param FieldList $fields
*/
public function updateCMSFields(FieldList $fields)
protected function updateCMSFields(FieldList $fields)
{
// requirements
// ------------
Expand Down Expand Up @@ -246,7 +246,7 @@ protected function ensureUnPublishJob($when)
->queueJob($job, $when ? date('Y-m-d H:i:s', $when) : null);
}

public function onBeforeDuplicate($original, $doWrite)
protected function onBeforeDuplicate($original, $doWrite)
{
$clone = $this->owner;

Expand Down Expand Up @@ -341,7 +341,7 @@ public function onBeforeWrite()
*
* @param $flags
*/
public function updateStatusFlags(&$flags)
protected function updateStatusFlags(&$flags)
{
$embargo = $this->getIsPublishScheduled();
$expiry = $this->getIsUnPublishScheduled();
Expand Down

0 comments on commit b970d53

Please sign in to comment.