From f79afa4ed735b0837a2275741aa923a867b845f2 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Tue, 29 Aug 2023 17:24:11 +0200 Subject: [PATCH] Add function MDNodaLink->getEntityLink (wrapper around mdnodarepository->getEntityLink) --- src/classes/MDNodaLink.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/classes/MDNodaLink.php b/src/classes/MDNodaLink.php index e7cf6b9..b3796c5 100644 --- a/src/classes/MDNodaLink.php +++ b/src/classes/MDNodaLink.php @@ -14,6 +14,17 @@ final class MDNodaLink { public readonly MDNodaRepository $source; public readonly string $id; + /** + * Returns the link to the current entity. + * + * @return string + */ + public function getEntityLink():string { + + return $this->source->getEntityLink($this->id); + + } + /** * Constructor. *