Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
48 * {@inheritdoc} | 48 * {@inheritdoc} |
49 */ | 49 */ |
50 public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) { | 50 public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) { |
51 return new static( | 51 return new static( |
52 $entity_type, | 52 $entity_type, |
53 $container->get('entity.manager')->getStorage($entity_type->id()), | 53 $container->get('entity_type.manager')->getStorage($entity_type->id()), |
54 $container->get('date.formatter'), | 54 $container->get('date.formatter'), |
55 $container->get('redirect.destination') | 55 $container->get('redirect.destination') |
56 ); | 56 ); |
57 } | 57 } |
58 | 58 |
94 $mark = [ | 94 $mark = [ |
95 '#theme' => 'mark', | 95 '#theme' => 'mark', |
96 '#mark_type' => node_mark($entity->id(), $entity->getChangedTime()), | 96 '#mark_type' => node_mark($entity->id(), $entity->getChangedTime()), |
97 ]; | 97 ]; |
98 $langcode = $entity->language()->getId(); | 98 $langcode = $entity->language()->getId(); |
99 $uri = $entity->urlInfo(); | 99 $uri = $entity->toUrl(); |
100 $options = $uri->getOptions(); | 100 $options = $uri->getOptions(); |
101 $options += ($langcode != LanguageInterface::LANGCODE_NOT_SPECIFIED && isset($languages[$langcode]) ? ['language' => $languages[$langcode]] : []); | 101 $options += ($langcode != LanguageInterface::LANGCODE_NOT_SPECIFIED && isset($languages[$langcode]) ? ['language' => $languages[$langcode]] : []); |
102 $uri->setOptions($options); | 102 $uri->setOptions($options); |
103 $row['title']['data'] = [ | 103 $row['title']['data'] = [ |
104 '#type' => 'link', | 104 '#type' => 'link', |