diff --git a/docs/dev/reference/hooks/getFrontendModule.md b/docs/dev/reference/hooks/getFrontendModule.md index a427743da..4d01d8793 100644 --- a/docs/dev/reference/hooks/getFrontendModule.md +++ b/docs/dev/reference/hooks/getFrontendModule.md @@ -40,8 +40,7 @@ a front end module. 3. *object* `$module` - An instance of the front end module's class that is registered for this module's - type. + An instance of the front end module's class that is registered for this module's type. ## Return Values @@ -63,7 +62,7 @@ use Contao\ModuleModel; #[AsHook('getFrontendModule')] class GetFrontendModuleListener { - public function __invoke(ModuleModel $model, string $buffer, $module): string + public function __invoke(ModuleModel $model, string $buffer, object $module): string { // Wrap a specific module in an additional wrapper div if (2 === (int) $model->id) { diff --git a/docs/dev/reference/hooks/getPageLayout.md b/docs/dev/reference/hooks/getPageLayout.md index f723ad8f8..1f7245f1f 100644 --- a/docs/dev/reference/hooks/getPageLayout.md +++ b/docs/dev/reference/hooks/getPageLayout.md @@ -16,7 +16,7 @@ and does not expect a return value. ## Parameters -1. *\Contao\PageModel* `$pageModel` +1. *\Contao\PageModel* `$page` The page model instance. @@ -43,7 +43,7 @@ use Contao\PageModel; #[AsHook('getPageLayout')] class GetPageLayoutListener { - public function __invoke(PageModel $pageModel, LayoutModel $layout, PageRegular $pageRegular): void + public function __invoke(PageModel $page, LayoutModel $layout, PageRegular $pageRegular): void { // Modify the page or layout object }