summaryrefslogtreecommitdiff
path: root/modules_v4
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-10-05 17:50:11 +0100
committerGreg Roach <fisharebest@webtrees.net>2019-10-05 17:50:11 +0100
commita992e8c1f5cff3fba48e8b69ec698e4e21142dc8 (patch)
treee0bbbbc20263a121967e1f1e54736540a2b701e3 /modules_v4
parent7ce80a90dd51df60a2273a7f4a59fc4c25d469d5 (diff)
downloadwebtrees-a992e8c1f5cff3fba48e8b69ec698e4e21142dc8.tar.gz
webtrees-a992e8c1f5cff3fba48e8b69ec698e4e21142dc8.tar.bz2
webtrees-a992e8c1f5cff3fba48e8b69ec698e4e21142dc8.zip
Change signature for Footer modules - give them access to the request
Diffstat (limited to 'modules_v4')
-rw-r--r--modules_v4/example-footer.disable/module.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules_v4/example-footer.disable/module.php b/modules_v4/example-footer.disable/module.php
index 6b0f33a4a9..0712cff479 100644
--- a/modules_v4/example-footer.disable/module.php
+++ b/modules_v4/example-footer.disable/module.php
@@ -50,11 +50,11 @@ return new class extends AbstractModule implements ModuleCustomInterface, Module
/**
* A footer, to be added at the bottom of every page.
*
- * @param Tree|null $tree
+ * @param ServerRequestInterface $request
*
* @return string
*/
- public function getFooter(?Tree $tree): string
+ public function getFooter(ServerRequestInterface $request): string
{
$url = route('module', ['module' => $this->name(), 'action' => 'Page']);