. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Module; use Fisharebest\Webtrees\GedcomRecord; use Fisharebest\Webtrees\I18N; use function view; /** * Class ShareUrlModule */ class ShareUrlModule extends AbstractModule implements ModuleShareInterface { use ModuleShareTrait; /** * How should this module be identified in the control panel, etc.? * * @return string */ 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]); } }