sonata Admin bundle中是否有类似预删除的批量删除
Is there anything like predelete for the batch delete in sonata Admin bundle
我想知道 sonata Admins 中是否有前置事件,例如:
PreBatchDeleteAction() 方法
是的,您可以将此方法用于 batchDeleteAction:
public function batchActionDeleteIsRelevant(array $selectedIds, $allEntitiesSelected, Request $request = null)
{
}
适用于任何批处理操作的通用规则 是:
batchAction<MyAction>IsRelevant(array $selectedIds, $allEntitiesSelected, Request $request = null)
{
}
我想知道 sonata Admins 中是否有前置事件,例如: PreBatchDeleteAction() 方法
是的,您可以将此方法用于 batchDeleteAction:
public function batchActionDeleteIsRelevant(array $selectedIds, $allEntitiesSelected, Request $request = null)
{
}
适用于任何批处理操作的通用规则 是:
batchAction<MyAction>IsRelevant(array $selectedIds, $allEntitiesSelected, Request $request = null)
{
}