Given this form item defined in a custom module;
$form['my_items'] = [ '#type' => 'radios', '#title' => $this->t('Items'), '#options' => $optionsSet // array of options pulled from a data source ];
How can I modify the label of each option to include a small image to the right of the text? In my case, the image is stored in the same dataset alongside each label.
I'm going to guess this has something to do with adding a '#theme' attribute, but I haven't been able to determine the entire process for setting that up.