comparison core/modules/taxonomy/src/TermTranslationHandler.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
30 if ($this->getSourceLangcode($form_state)) { 30 if ($this->getSourceLangcode($form_state)) {
31 $entity = $form_state->getFormObject()->getEntity(); 31 $entity = $form_state->getFormObject()->getEntity();
32 // We need a redirect here, otherwise we would get an access denied page, 32 // We need a redirect here, otherwise we would get an access denied page,
33 // since the current URL would be preserved and we would try to add a 33 // since the current URL would be preserved and we would try to add a
34 // translation for a language that already has a translation. 34 // translation for a language that already has a translation.
35 $form_state->setRedirectUrl($entity->urlInfo('edit-form')); 35 $form_state->setRedirectUrl($entity->toUrl('edit-form'));
36 } 36 }
37 } 37 }
38 38
39 } 39 }