There's a div called
.description in a form in the site I've inherited. I want to add a another class to the div.
The div's content is created within
$form['#description'] = 'Please enter your full name';
I've tried adding a classed to it like:
$form['#description'] = [ '#markup' => '<div class="my-class">Please enter your full name</div>', ];
But this just results in "Array" being printed.
Would anyone know what I could do add a class to this element?