mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 04:16:38 -04:00
Artwork: Add EditUrl property on the artwork page
This commit is contained in:
parent
2fc92b8768
commit
987de26b73
2 changed files with 12 additions and 0 deletions
|
@ -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>
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue