我有SonataAdmin。
是否可以将图像放在选项卡的按钮上(文本旁边)?
$formMapper
->tab('admin.general.tabs.translate_es.label')
->with('')
->add('name_es', null, [
'label' => 'admin.entity.crop.fields.name_es.label',
])
->end()
->end()
标签文字是:admin.entity.crop.fields.name_es.label
:
<img src="https://cdn.countryflags.com/thumbs/spain/flag-400.png" width="16"/> Español
在这种情况下,只显示图像的HTML(qazxsw poi)而不是图像!
进入帮助领域
<img src="https://cdn.countryflags.com/thumbs/spain/flag-400.png" width="16"/> Español