We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ede8816 + 1697397 commit 8d7cbf1Copy full SHA for 8d7cbf1
README.md
@@ -233,6 +233,13 @@ $entry = new \Contentful\Management\Resource\Entry($contentTypeId);
233
$entry->setField('title', 'en-US', 'My awesome blog post');
234
$entry->setField('body', 'en-US', 'Something something...');
235
236
+//Add existing assets
237
+$images = [
238
+ new \Contentful\Core\Api\Link('Example-existing-asset-id', 'Asset'),
239
+ new \Contentful\Core\Api\Link('Example-existing-asset-id-2', 'Asset'),
240
+];
241
+$entry->setField('productImages', 'en-US', $images);
242
+
243
$environmentProxy->create($entry);
244
245
$entry->setField('body', 'en-US', 'Updated body');
0 commit comments