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