From 2ec4a667251303478bb9ffdea0a23f9746f5229f Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 22 May 2024 10:39:58 +1200 Subject: [PATCH] DOC Update extension hook examples to be protected --- docs/en/02_advanced_setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/02_advanced_setup.md b/docs/en/02_advanced_setup.md index 87c8114f..94e11440 100644 --- a/docs/en/02_advanced_setup.md +++ b/docs/en/02_advanced_setup.md @@ -256,7 +256,7 @@ namespace App\PageTypes; class BlockPage extends Page { - public function onBeforeWrite() + protected function onBeforeWrite() { parent::onBeforeWrite(); @@ -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()) {