Display image and text above form I have form built with form api in Drupal 8,
now, i want to show an image and some text description on top of that form, meaning, before the form is rendered, what i can think of is, doing a node_load and then suffix and prefix with the node_load value or entity load,
but my question is, in case i write a function for node_load or entity_load, where would i call the return value of these functions and how ?
i am thinking of something like this :

$form['image_div'] = array(
            '#prefix' =&gt; '&lt;div class="image"&gt;&lt;img src="path_to_image" /&gt;',
            '#suffix' =&gt; '&lt;/div&gt;',
        );


how can i call the path to image here, which is a function return value.
Example:

 $theme = \Drupal::theme()-&gt;getActiveTheme();    
 $form['image_div'] = array(
 '#prefix' =&gt; '&lt;img src="/' . $theme-&gt;getPath() .'/images/smile.png"&gt;',
        '#suffix' =&gt; '&lt;/div&gt;',
    );