You are here

function workspaces_entity_preload in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workspaces/workspaces.module \workspaces_entity_preload()

Implements hook_entity_preload().

File

core/modules/workspaces/workspaces.module, line 91
Provides full-site preview functionality for content staging.

Code

function workspaces_entity_preload(array $ids, $entity_type_id) {
  return \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(EntityOperations::class)
    ->entityPreload($ids, $entity_type_id);
}