Commit 2d5b6c41 authored by alexpott's avatar alexpott

Issue #1999404 by marcingy, mongolito404, jiff: Use Symfony Request for node module.

parent b90377b3
......@@ -470,9 +470,10 @@ public function save(array $form, array &$form_state) {
*/
public function delete(array $form, array &$form_state) {
$destination = array();
if (isset($_GET['destination'])) {
$query = \Drupal::request()->query;
if ($query->has('destination')) {
$destination = drupal_get_destination();
unset($_GET['destination']);
$query->remove('destination');
}
$node = $this->entity;
$form_state['redirect'] = array('node/' . $node->nid . '/delete', array('query' => $destination));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment