Skip to content

Commit

Permalink
Merge pull request #1194 from creative-commoners/pulls/6/protected-docs
Browse files Browse the repository at this point in the history
DOC Update extension hook examples to be protected
  • Loading branch information
GuySartorelli authored May 21, 2024
2 parents 5892d44 + 2ec4a66 commit 68cacb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/02_advanced_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ namespace App\PageTypes;

class BlockPage extends Page
{
public function onBeforeWrite()
protected function onBeforeWrite()
{
parent::onBeforeWrite();

Expand Down Expand Up @@ -293,7 +293,7 @@ class BlockPageFluentExtension extends Extension
* @param string $field
* @param Locale $locale
*/
public function updateLocaliseSelect(&$query, $table, $field, Locale $locale)
protected function updateLocaliseSelect(&$query, $table, $field, Locale $locale)
{
// disallow elemental data inheritance in the case that published localised page instance already exists
if ($field == 'ElementalAreaID' && $this->owner->isPublishedInLocale()) {
Expand Down

0 comments on commit 68cacb2

Please sign in to comment.