diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-10-05 17:50:11 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-10-05 17:50:11 +0100 |
| commit | a992e8c1f5cff3fba48e8b69ec698e4e21142dc8 (patch) | |
| tree | e0bbbbc20263a121967e1f1e54736540a2b701e3 /modules_v4 | |
| parent | 7ce80a90dd51df60a2273a7f4a59fc4c25d469d5 (diff) | |
| download | webtrees-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.php | 4 |
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']); |
