diff --git a/Classes/Hooks/PageLayoutController.php b/Classes/Hooks/PageLayoutController.php index 53d7fe2c2c36227e215ad2ebcbfb18bdeb003c33..64930f119df91402adde7d6596b8ef43901fc046 100644 --- a/Classes/Hooks/PageLayoutController.php +++ b/Classes/Hooks/PageLayoutController.php @@ -45,7 +45,7 @@ class PageLayoutController { * @return string * @throws \InvalidArgumentException */ - public function addNewsModuleLink(array $parameters = [], $controller): string { + public function addNewsModuleLink(array $parameters = [], CorePageLayoutController $controller = null): string { $out = ''; $pageRow = BackendUtility::getRecord('pages', $controller->id); $acceptedDoktypes = [BackendNewsUtility::NEWS_DOKTYPE, BackendNewsUtility::CATEGORY_DOKTYPE];