Guest User

Untitled

a guest
Oct 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. // single
  2. $service = \Drupal::service('entity_type.manager')->getStorage('node');
  3. $node = $service->load(22);
  4.  
  5. // multiple
  6. $entity = \Drupal::entityTypeManager()->getStorage($entity_type)->loadMultiple(array(22, 14, 8));
Add Comment
Please, Sign In to add comment