Contribution Date
Technology
Contribution Project
Contribution Details
Fixing issue for use cases where $element['#title'] is string
For some cases like mentioned below, when we render this inside form, title is coming as string, instead of markup array or translatable markup object.
So creating array when there is direct string as $element['#title']
$form['test'] = [
'#type' => 'link',
'#title' => t('Copy component'),
'#url' => $copy_url,
'#weight' => -100,
];
Contribution Issue Link
Contribution Link
Files count
2
Patches count
1