Overrides \Drupal\Core\Entity\EntityFormController::delete().
Overrides EntityFormController::delete
public function delete(array $form, array &$form_state) {
$destination = array();
$query = \Drupal::request()->query;
if (!is_null($query
->get('destination'))) {
$destination = drupal_get_destination();
$query
->remove('destination');
}
$block = $this
->buildEntity($form, $form_state);
$form_state['redirect'] = array(
'block/' . $block
->id() . '/delete',
array(
'query' => $destination,
),
);
}