API Set extension hook implementation visibility to protected
This commit is contained in:
parent
a1b113ab3d
commit
32e7ebf437
|
@ -110,7 +110,7 @@ class ContentReviewDefaultSettings extends DataExtension
|
|||
/**
|
||||
* @param FieldList $fields
|
||||
*/
|
||||
public function updateCMSFields(FieldList $fields)
|
||||
protected function updateCMSFields(FieldList $fields)
|
||||
{
|
||||
$helpText = LiteralField::create(
|
||||
'ContentReviewHelp',
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -161,7 +161,7 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
|
|||
/**
|
||||
* @param FieldList $actions
|
||||
*/
|
||||
public function updateCMSActions(FieldList $actions)
|
||||
protected function updateCMSActions(FieldList $actions)
|
||||
{
|
||||
if (!$this->canBeReviewedBy(Security::getCurrentUser())) {
|
||||
return;
|
||||
|
@ -326,7 +326,7 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
|
|||
/**
|
||||
* @param FieldList $fields
|
||||
*/
|
||||
public function updateSettingsFields(FieldList $fields)
|
||||
protected function updateSettingsFields(FieldList $fields)
|
||||
{
|
||||
if ($this->owner->hasMethod('displayContentReview') && !$this->owner->displayContentReview()) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue