. */ namespace Fisharebest\Webtrees\Module; use Fisharebest\Webtrees\Family; use Fisharebest\Webtrees\Functions\Functions; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Individual; use Fisharebest\Webtrees\Menu; /** * Class FamilyNavigatorModule */ class FamilyNavigatorModule extends AbstractModule implements ModuleSidebarInterface { /** {@inheritdoc} */ public function getTitle() { return /* I18N: Name of a module/sidebar */ I18N::translate('Family navigator'); } /** {@inheritdoc} */ public function getDescription() { return /* I18N: Description of the “Family navigator” module */ 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]); } }