. */ namespace Fisharebest\Webtrees\Module; use Fisharebest\Webtrees\Individual; /** * Interface ModuleSidebarInterface - Classes and libraries for module system */ interface ModuleSidebarInterface { /** * The user can change the order of sidebars. Until they do this, they are shown in this order. * * @return int */ public function defaultSidebarOrder(); /** * Load this sidebar synchronously. * * @param Individual $individual * * @return string */ public function getSidebarContent(Individual $individual); /** * Load this sidebar asynchronously. * * @return string */ public function getSidebarAjaxContent(); /** * Does this sidebar have anything to display for this individual? * * Individual $individual * * @return bool */ public function hasSidebarContent(Individual $individual); }