As the title suggest I am using sage 10 with ACF Composer.
See the following link for an example of how to add a custom block. Its not detailed in the docs but there is a block preview that can be generated by adding some data. It works if I give it dummy data that matches the fields() section, however I want to pass the preview and image url.
/**
* The block preview example data.
*
* @var array
*/
public $example = [
'attributes' => [
'mode' => 'preview',
'data' => [
'preview_image' => 'https://via.placeholder.com/1500x500',
],
],
];
My current attempt does not work.
Anyone had any success adding preview images?
Thanks in advance.