I want this result:
<a href="path/to/something">This is a link! <span>with a span inside!</span></a>
This renders a link:
$render = array(
'link' => array(
'#type' => 'link',
'#title' => t("This is a link!"),
'#href' => "path/to/something",
),
);
Why does this not render a span inside the link?
$render = array(
'link' => array(
'#type' => 'link',
'#title' => t("This is a link!"),
'#href' => "path/to/something",
'span' => array(
'#type' => 'markup',
'#markup' => ' <span>with a span inside!</span>',
),
),
);
Thanks in advance!