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

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
188 $form_state->setRedirect('entity.view.collection'); 188 $form_state->setRedirect('entity.view.collection');
189 return; 189 return;
190 } 190 }
191 $this->entity->save(); 191 $this->entity->save();
192 $this->messenger()->addStatus($this->t('The view %name has been saved.', ['%name' => $form_state->getValue('label')])); 192 $this->messenger()->addStatus($this->t('The view %name has been saved.', ['%name' => $form_state->getValue('label')]));
193 $form_state->setRedirectUrl($this->entity->urlInfo('edit-form')); 193 $form_state->setRedirectUrl($this->entity->toUrl('edit-form'));
194 } 194 }
195 195
196 /** 196 /**
197 * Form submission handler for the 'cancel' action. 197 * Form submission handler for the 'cancel' action.
198 * 198 *