Skip to content

Commit

Permalink
DOC Update extension hook examples to be protected
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed May 21, 2024
1 parent add7e35 commit 27fd72e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/dataobjects.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ use TractorCow\Fluent\Extension\FluentExtension;

class PlayerExtension extends FluentExtension
{
public function updateCMSFields(FieldList $fields)
protected function updateCMSFields(FieldList $fields)
{
$fields->removeByName('SomeIrrelevantField');
parent::updateCMSFields($fields);
Expand Down
2 changes: 1 addition & 1 deletion docs/en/scenarios.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class SiteTreeFluentExtension extends SiteTreeExtension
* @param SQLSelect $query
* @param DataQuery|null $dataQuery
*/
public function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
protected function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
{
// We only want to apply this logic on the frontend.
if (!FluentState::singleton()->getIsFrontend()) {
Expand Down

0 comments on commit 27fd72e

Please sign in to comment.