Mercurial > hg > isophonics-drupal-site
diff core/modules/node/src/NodeListBuilder.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/core/modules/node/src/NodeListBuilder.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/node/src/NodeListBuilder.php Thu May 09 15:33:08 2019 +0100 @@ -50,7 +50,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('date.formatter'), $container->get('redirect.destination') ); @@ -96,7 +96,7 @@ '#mark_type' => node_mark($entity->id(), $entity->getChangedTime()), ]; $langcode = $entity->language()->getId(); - $uri = $entity->urlInfo(); + $uri = $entity->toUrl(); $options = $uri->getOptions(); $options += ($langcode != LanguageInterface::LANGCODE_NOT_SPECIFIED && isset($languages[$langcode]) ? ['language' => $languages[$langcode]] : []); $uri->setOptions($options);