comparison core/modules/user/src/ProfileTranslationHandler.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
46 if ($this->getSourceLangcode($form_state)) { 46 if ($this->getSourceLangcode($form_state)) {
47 $entity = $form_state->getFormObject()->getEntity(); 47 $entity = $form_state->getFormObject()->getEntity();
48 // We need a redirect here, otherwise we would get an access denied page 48 // We need a redirect here, otherwise we would get an access denied page
49 // since the current URL would be preserved and we would try to add a 49 // since the current URL would be preserved and we would try to add a
50 // translation for a language that already has a translation. 50 // translation for a language that already has a translation.
51 $form_state->setRedirectUrl($entity->urlInfo()); 51 $form_state->setRedirectUrl($entity->toUrl());
52 } 52 }
53 } 53 }
54 54
55 } 55 }