xref: /webtrees/app/Module/ModuleGlobalTrait.php (revision 3976b4703df669696105ed6b024b96d433c8fbdb)
1abafa13cSGreg Roach<?php
2*3976b470SGreg Roach
3abafa13cSGreg Roach/**
4abafa13cSGreg Roach * webtrees: online genealogy
5abafa13cSGreg Roach * Copyright (C) 2019 webtrees development team
6abafa13cSGreg Roach * This program is free software: you can redistribute it and/or modify
7abafa13cSGreg Roach * it under the terms of the GNU General Public License as published by
8abafa13cSGreg Roach * the Free Software Foundation, either version 3 of the License, or
9abafa13cSGreg Roach * (at your option) any later version.
10abafa13cSGreg Roach * This program is distributed in the hope that it will be useful,
11abafa13cSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
12abafa13cSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13abafa13cSGreg Roach * GNU General Public License for more details.
14abafa13cSGreg Roach * You should have received a copy of the GNU General Public License
15abafa13cSGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>.
16abafa13cSGreg Roach */
17abafa13cSGreg Roachdeclare(strict_types=1);
18abafa13cSGreg Roach
19abafa13cSGreg Roachnamespace Fisharebest\Webtrees\Module;
20abafa13cSGreg Roach
21abafa13cSGreg Roach/**
22abafa13cSGreg Roach * Trait ModuleGlobalTrait - default implementation of ModuleGlobalInterface
23abafa13cSGreg Roach */
24abafa13cSGreg Roachtrait ModuleGlobalTrait
25abafa13cSGreg Roach{
26abafa13cSGreg Roach    /**
27abafa13cSGreg Roach     * Raw content, to be added at the end of the <body> element.
28abafa13cSGreg Roach     * Typically, this will be <script> elements.
29abafa13cSGreg Roach     *
30abafa13cSGreg Roach     * @return string
31abafa13cSGreg Roach     */
32abafa13cSGreg Roach    public function bodyContent(): string
33abafa13cSGreg Roach    {
34abafa13cSGreg Roach        return '';
35abafa13cSGreg Roach    }
368d6560c4SGreg Roach
378d6560c4SGreg Roach    /**
388d6560c4SGreg Roach     * Raw content, to be added at the end of the <head> element.
398d6560c4SGreg Roach     * Typically, this will be <link> and <meta> elements.
408d6560c4SGreg Roach     *
418d6560c4SGreg Roach     * @return string
428d6560c4SGreg Roach     */
438d6560c4SGreg Roach    public function headContent(): string
448d6560c4SGreg Roach    {
458d6560c4SGreg Roach        return '';
468d6560c4SGreg Roach    }
47abafa13cSGreg Roach}
48