comparison core/modules/views_ui/src/ViewDuplicateForm.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
72 $this->entity->set('label', $form_state->getValue('label')); 72 $this->entity->set('label', $form_state->getValue('label'));
73 $this->entity->set('id', $form_state->getValue('id')); 73 $this->entity->set('id', $form_state->getValue('id'));
74 $this->entity->save(); 74 $this->entity->save();
75 75
76 // Redirect the user to the view admin form. 76 // Redirect the user to the view admin form.
77 $form_state->setRedirectUrl($this->entity->urlInfo('edit-form')); 77 $form_state->setRedirectUrl($this->entity->toUrl('edit-form'));
78 } 78 }
79 79
80 } 80 }