We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d3aa97 commit 7849e3aCopy full SHA for 7849e3a
src/Data/Asset.php
@@ -88,4 +88,21 @@ public function updatedAt(): null|string
88
{
89
return $this->getFormattedDateTime('updated_at', "", format: "Y-m-d");
90
}
91
+
92
+ public static function emptyAsset(): Asset
93
+ {
94
+ return self::make([
95
+ "id" => null,
96
+ "alt"=> null,
97
+ "name"=> "",
98
+ "focus"=> null,
99
+ "title"=> null,
100
+ "source"=> null,
101
+ "filename"=> "",
102
+ "copyright"=> null,
103
+ "fieldtype"=> "asset",
104
+ "meta_data"=> [],
105
+ ]);
106
107
+ }
108
0 commit comments