. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Module; use Fisharebest\Webtrees\GedcomRecord; use Fisharebest\Webtrees\I18N; use function view; class ShareUrlModule extends AbstractModule implements ModuleShareInterface { use ModuleShareTrait; public function title(): string { return I18N::translate('Share the URL'); } public function description(): string { return I18N::translate('Copy the URL of the record to the clipboard'); } /** * HTML to include in the share links page. * * @param GedcomRecord $record * * @return string */ public function share(GedcomRecord $record): string { return view('modules/share-url/share', ['record' => $record]); } }