Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // single
- $service = \Drupal::service('entity_type.manager')->getStorage('node');
- $node = $service->load(22);
- // multiple
- $entity = \Drupal::entityTypeManager()->getStorage($entity_type)->loadMultiple(array(22, 14, 8));
Add Comment
Please, Sign In to add comment