West Yorkshire police must keep the peace when a demonstration by the far right English Defence League becomes violent.