. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Module; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Individual; /** * Class FamilyNavigatorModule */ class FamilyNavigatorModule extends AbstractModule implements ModuleSidebarInterface { /** {@inheritdoc} */ public function getTitle(): string { /* I18N: Name of a module/sidebar */ return I18N::translate('Family navigator'); } /** {@inheritdoc} */ public function getDescription(): string { /* I18N: Description of the “Family navigator” module */ return I18N::translate('A sidebar showing an individual’s close families and relatives.'); } /** {@inheritdoc} */ public function defaultSidebarOrder(): int { return 20; } /** {@inheritdoc} */ public function hasSidebarContent(Individual $individual): bool { return true; } /** * Load this sidebar synchronously. * * @param Individual $individual * * @return string */ public function getSidebarContent(Individual $individual): string { return view('modules/family_nav/sidebar', ['individual' => $individual]); } }