/** * {@inheritDoc} * @see \MyArtJaub\Webtrees\Hook\HookInterfaces\RecordNameTextExtenderInterface::hRecordNameAppend() */ public function hRecordNameAppend(GedcomRecord $grec) { $html = ''; if ($grec instanceof \Fisharebest\Webtrees\Individual) { $dindi = new Individual($grec); $html .= FunctionsPrint::formatIsSourcedIcon('R', $dindi->isSourced(), 'INDI', 1, 'small'); $html .= FunctionsPrint::formatIsSourcedIcon('E', $dindi->isBirthSourced(), 'BIRT', 1, 'small'); if ($grec->isDead()) { $html .= FunctionsPrint::formatIsSourcedIcon('E', $dindi->isDeathSourced(), 'DEAT', 1, 'small'); } } return $html; }