Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By lsantini on
Hi all,
I need to show images for each row inside a drupal table. These images are Base64 coded and I'm trying to use the following code
$content = "data:image/jpeg;base64, ".$image_flow;
$form['table']['row'.$key] = [
'imgList' => [
'#type' => 'item',
'#markup' => '<img src="'.$content.'" alt="Icon software" class="img_details"> ',
]
];
The content "data:" disappears when the form has been built, so the images are not displayed.
No issues found using twig way.
Do you have any suggestions?
Kr,
Luigi