Overrides Drupal\Core\Entity\EntityFormController::delete().
Overrides EntityFormController::delete
public function delete(array $form, array &$form_state) {
$destination = array();
if (isset($_GET['destination'])) {
$destination = drupal_get_destination();
unset($_GET['destination']);
}
$node = $this
->getEntity($form_state);
$form_state['redirect'] = array(
'node/' . $node->nid . '/delete',
array(
'query' => $destination,
),
);
}