[ENTITY] Add JsonSerializable interface to Entity base class and implement it for the Note class
This commit is contained in:
@@ -262,6 +262,14 @@ class Note extends Entity
|
||||
[], ['id' => $this->id]));
|
||||
}
|
||||
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return [
|
||||
'content' => $this->getContent(),
|
||||
'author' => $this->getGSActorId(),
|
||||
];
|
||||
}
|
||||
|
||||
public static function schemaDef(): array
|
||||
{
|
||||
return [
|
||||
|
Reference in New Issue
Block a user