diff --git a/docs/dev/reference/hooks/generatePage.md b/docs/dev/reference/hooks/generatePage.md index 95edaaa91..efbb7f4a3 100644 --- a/docs/dev/reference/hooks/generatePage.md +++ b/docs/dev/reference/hooks/generatePage.md @@ -15,7 +15,7 @@ and does not expect a return value. ## Parameters -1. *\Contao\PageModel* `$pageModel` +1. *\Contao\PageModel* `$page` The current page object. @@ -45,7 +45,7 @@ class GeneratePageListener implements ServiceAnnotationInterface /** * @Hook("generatePage") */ - public function onGeneratePage(PageModel $pageModel, LayoutModel $layout, PageRegular $pageRegular): void + public function onGeneratePage(PageModel $page, LayoutModel $layout, PageRegular $pageRegular): void { // Do something … } diff --git a/docs/dev/reference/hooks/getPageLayout.md b/docs/dev/reference/hooks/getPageLayout.md index d5beade69..03428a209 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. @@ -46,7 +46,7 @@ class GetPageLayoutListener implements ServiceAnnotationInterface /** * @Hook("getPageLayout") */ - public function onGetPageLayout(PageModel $pageModel, LayoutModel $layout, PageRegular $pageRegular): void + public function onGetPageLayout(PageModel $page, LayoutModel $layout, PageRegular $pageRegular): void { // Modify the page or layout object } diff --git a/docs/dev/reference/hooks/modifyFrontendPage.md b/docs/dev/reference/hooks/modifyFrontendPage.md index 928b8d874..85da1518c 100644 --- a/docs/dev/reference/hooks/modifyFrontendPage.md +++ b/docs/dev/reference/hooks/modifyFrontendPage.md @@ -25,7 +25,7 @@ insert tags, use the [`outputFrontendTemplate`](../outputFrontendTemplate) hook Content of the rendered front end template. -2. *string* `$templateName` +2. *string* `$template` The template name (e.g. `fe_page`) without file extension. @@ -50,9 +50,9 @@ class ModifyFrontendPageListener implements ServiceAnnotationInterface /** * @Hook("modifyFrontendPage") */ - public function onModifyFrontendPage(string $buffer, string $templateName): string + public function onModifyFrontendPage(string $buffer, string $template): string { - if ('fe_page' === $templateName) { + if ('fe_page' === $template) { // Modify $buffer }