Skip to content

Commit

Permalink
Merge pull request #89 from creative-commoners/pulls/5/protect-hook
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 1c0ecca + 853c2b2 commit b98b0a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/developer-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ For instance, in order to add a new Page field to the report you could add an ex
use SilverStripe\SiteWideContentReport\SiteWideContentReport;

class MyReportExtension extends Extension {
public function updateColumns($itemType, &$columns) {
protected function updateColumns($itemType, &$columns) {
if(itemType !== 'Pages') {
return;
}
Expand Down Expand Up @@ -68,7 +68,7 @@ use SilverStripe\GridfieldQueuedExport\Forms\GridFieldQueuedExportButton;

class SitewideContentReportQueuedExportExtension extends Extension
{
public function updateExportButton(GridFieldComponent &$exportButton)
protected function updateExportButton(GridFieldComponent &$exportButton)
{
$exportButton = new GridFieldQueuedExportButton('buttons-after-left');
}
Expand Down

0 comments on commit b98b0a7

Please sign in to comment.