Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/workspaces/workspaces.module @ 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 |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
64 ->getInstanceFromDefinition(EntityTypeInfo::class) | 64 ->getInstanceFromDefinition(EntityTypeInfo::class) |
65 ->fieldInfoAlter($definitions); | 65 ->fieldInfoAlter($definitions); |
66 } | 66 } |
67 | 67 |
68 /** | 68 /** |
69 * Implements hook_entity_load(). | 69 * Implements hook_entity_preload(). |
70 */ | 70 */ |
71 function workspaces_entity_load(array &$entities, $entity_type_id) { | 71 function workspaces_entity_preload(array $ids, $entity_type_id) { |
72 return \Drupal::service('class_resolver') | 72 return \Drupal::service('class_resolver') |
73 ->getInstanceFromDefinition(EntityOperations::class) | 73 ->getInstanceFromDefinition(EntityOperations::class) |
74 ->entityLoad($entities, $entity_type_id); | 74 ->entityPreload($ids, $entity_type_id); |
75 } | 75 } |
76 | 76 |
77 /** | 77 /** |
78 * Implements hook_entity_presave(). | 78 * Implements hook_entity_presave(). |
79 */ | 79 */ |