Artwork: Add EditUrl property on the artwork page

This commit is contained in:
Mike Colagrosso 2024-01-09 23:11:22 -07:00 committed by Alex Cabal
parent 2fc92b8768
commit 987de26b73
2 changed files with 12 additions and 0 deletions

View file

@ -14,6 +14,7 @@ use function Safe\preg_replace;
/**
* @property string $UrlName
* @property string $Url
* @property string $EditUrl
* @property array<ArtworkTag> $Tags
* @property Artist $Artist
* @property string $ImageUrl
@ -160,6 +161,10 @@ class Artwork extends PropertiesBase{
return $this->_Url;
}
protected function GetEditUrl(): string{
return $this->Url . '/edit';
}
/**
* @return array<ArtworkTag>
*/