xref: /webtrees/app/Module/FamilyListModule.php (revision 00ef1d3af59aba99c1ae5c92c7e655525c97797b)
167992b6aSRichard Cissee<?php
23976b470SGreg Roach
367992b6aSRichard Cissee/**
467992b6aSRichard Cissee * webtrees: online genealogy
5d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
667992b6aSRichard Cissee * This program is free software: you can redistribute it and/or modify
767992b6aSRichard Cissee * it under the terms of the GNU General Public License as published by
867992b6aSRichard Cissee * the Free Software Foundation, either version 3 of the License, or
967992b6aSRichard Cissee * (at your option) any later version.
1067992b6aSRichard Cissee * This program is distributed in the hope that it will be useful,
1167992b6aSRichard Cissee * but WITHOUT ANY WARRANTY; without even the implied warranty of
1267992b6aSRichard Cissee * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1367992b6aSRichard Cissee * GNU General Public License for more details.
1467992b6aSRichard Cissee * You should have received a copy of the GNU General Public License
1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
1667992b6aSRichard Cissee */
17fcfa147eSGreg Roach
1867992b6aSRichard Cisseedeclare(strict_types=1);
1967992b6aSRichard Cissee
2067992b6aSRichard Cisseenamespace Fisharebest\Webtrees\Module;
2167992b6aSRichard Cissee
2206a438b4SGreg Roachuse Fisharebest\Webtrees\I18N;
23f3874e19SGreg Roach
2406a438b4SGreg Roachclass FamilyListModule extends IndividualListModule
2567992b6aSRichard Cissee{
2667992b6aSRichard Cissee    public function title(): string
2767992b6aSRichard Cissee    {
2867992b6aSRichard Cissee        /* I18N: Name of a module/list */
2967992b6aSRichard Cissee        return I18N::translate('Families');
3067992b6aSRichard Cissee    }
3167992b6aSRichard Cissee
3267992b6aSRichard Cissee    public function description(): string
3367992b6aSRichard Cissee    {
34b5e8e56bSGreg Roach        /* I18N: Description of the “Families” module */
3567992b6aSRichard Cissee        return I18N::translate('A list of families.');
3667992b6aSRichard Cissee    }
3767992b6aSRichard Cissee
3867992b6aSRichard Cissee    public function listMenuClass(): string
3967992b6aSRichard Cissee    {
4067992b6aSRichard Cissee        return 'menu-list-fam';
4167992b6aSRichard Cissee    }
42*00ef1d3aSGreg Roach
43*00ef1d3aSGreg Roach    protected function showFamilies(): bool
44*00ef1d3aSGreg Roach    {
45*00ef1d3aSGreg Roach        return true;
46*00ef1d3aSGreg Roach    }
47*00ef1d3aSGreg Roach
48*00ef1d3aSGreg Roach    protected function routeUrl(): string
49*00ef1d3aSGreg Roach    {
50*00ef1d3aSGreg Roach        return '/tree/{tree}/family-list';
51*00ef1d3aSGreg Roach    }
5267992b6aSRichard Cissee}
53