xref: /webtrees/app/Module/BritishSocialHistory.php (revision 75e7614a3c4ae5641ce6af45e2bb8ce501918735)
1<?php
2/**
3 * webtrees: online genealogy
4 * Copyright (C) 2019 webtrees development team
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16declare(strict_types=1);
17
18namespace Fisharebest\Webtrees\Module;
19
20use Illuminate\Support\Collection;
21
22/**
23 * Class BritishSocialHistory
24 */
25class BritishSocialHistory extends AbstractModule implements ModuleHistoricEventsInterface
26{
27    use ModuleHistoricEventsTrait;
28
29    /**
30     * How should this module be identified in the control panel, etc.?
31     *
32     * @return string
33     */
34    public function title(): string
35    {
36        return 'British social history';
37    }
38
39    /**
40     * Should this module be enabled when it is first installed?
41     *
42     * @return bool
43     */
44    public function isEnabledByDefault(): bool
45    {
46        return false;
47    }
48
49    /**
50     * All events provided by this module.
51     *
52     * @return Collection
53     */
54    public function historicEventsAll(): Collection
55    {
56        return new Collection([
57            "1 EVEN The Duke of Wellington defeated Napoleon Bonaparte, ending the Napoleonic wars.\n2 TYPE Battle of Waterloo\n2 DATE 18 JUN 1815\n2 PLAC Waterloo, Belgium",
58            "1 EVEN Cavalry was used to disperse a large crowd who were demanding electoral reform.  15 were killed and hundreds injured.\n2 TYPE Peterloo Massacre\n2 DATE 16 AUG 1819\n2 PLAC Manchester, England",
59            "1 EVEN Games of the IV Olympiad\n2 TYPE Olympic games\n2 DATE FROM 27 APR 1908 TO 31 OCT 1908\n2 PLAC London, England",
60            "1 EVEN Free healthcare for all\n2 TYPE National Health Service\n2 DATE FROM 5 JUL 1948",
61            "1 EVEN Games of the XIV Olympiad\n2 TYPE Olympic games\n2 DATE FROM 29 JUL 1948 TO 14 AUG 1948\n2 PLAC London, England",
62            "1 EVEN Mass industrial action, power cuts and a three-day working week.\n2 TYPE The winter of discontent\n2 DATE FROM 27 JUL 2012 TO 12 AUG 2012\n2 PLAC London, England",
63            "1 EVEN Games of the XXX Olympiad\n2 TYPE Olympic games\n2 DATE FROM 27 JUL 2012 TO 12 AUG 2012\n2 PLAC London, England",
64        ]);
65    }
66}
67