有没有办法向 Sonata Admin 中的字段添加提示
Is there a way to add a hint to a field in Sonata Admin
有没有办法在 Sonata Admin 的字段中添加提示或某种解释?
像这样:
[Label]*
[ -- The field -- ]
// here should be the description of the field
我在 docu 中没有找到关于此的任何信息,所以我猜这是通过某种模板覆盖或类似方式以某种方式完成的?
我们将阅读 other documentation helps ;) - looks like it is simply inherited from Symfony FormType。
例如:
$formMapper->add('slug', TextType::class, [
'help' => 'Used as URL or the linked page'
])
有没有办法在 Sonata Admin 的字段中添加提示或某种解释?
像这样:
[Label]*
[ -- The field -- ]
// here should be the description of the field
我在 docu 中没有找到关于此的任何信息,所以我猜这是通过某种模板覆盖或类似方式以某种方式完成的?
我们将阅读 other documentation helps ;) - looks like it is simply inherited from Symfony FormType。
例如:
$formMapper->add('slug', TextType::class, [
'help' => 'Used as URL or the linked page'
])