comparison core/modules/user/src/ProfileTranslationHandler.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
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 }