Hi awesome people of the forum,
probably a newbie question, but I am getting an “array to string conversion” error in a custom block and I can’t figure out why.
The problem is this line of code.
<img src="<?= $block->teaser_image()->url() ?>">
I also tried
<?= $block->teaser_image() ?>
<img src="<?= $block->image()->url() ?>">
<?= $block->image() ?>
This is the corresponding part of my blueprint
teaser_image:
type: files
label: Beitragsbild
layout: cards
accept:
extension: jpg, png, jpeg
maxsize: 65000
multiple: false
What’s wrong here?