Add function MDNodaLink->getEntityLink (wrapper around

mdnodarepository->getEntityLink)
This commit is contained in:
Joshua Ramon Enslin 2023-08-29 17:24:11 +02:00
parent 9bca8f400e
commit f79afa4ed7
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -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.
*