I am trying to programmatically add an image field value to a paragraph.
The field value of the image is as below
Array (
[target_id] => 28
[alt] => test images
[title] =>
[width] => 1440
[height] => 557
)
This is, how I try to set the image field value:
$paragraph->set('field_image', $para_array);
The image field is not being set. Where am I going wrong and what will be the way to implement it?