Mercurial > hg > cmmr2012-drupal-site
diff core/modules/language/src/LanguageListBuilder.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 |
line wrap: on
line diff
--- a/core/modules/language/src/LanguageListBuilder.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/language/src/LanguageListBuilder.php Thu May 09 15:34:47 2019 +0100 @@ -51,7 +51,7 @@ public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) { return new static( $entity_type, - $container->get('entity.manager')->getStorage($entity_type->id()), + $container->get('entity_type.manager')->getStorage($entity_type->id()), $container->get('language_manager'), $container->get('config.factory'), $container->get('messenger') @@ -169,7 +169,7 @@ $this->messenger->addStatus($this->t('Configuration saved.')); // Force the redirection to the page with the language we have just // selected as default. - $form_state->setRedirectUrl($this->entities[$new_id]->urlInfo('collection', ['language' => $this->entities[$new_id]])); + $form_state->setRedirectUrl($this->entities[$new_id]->toUrl('collection', ['language' => $this->entities[$new_id]])); } }