Skip to content

Instantly share code, notes, and snippets.

@allgood2386
Created January 24, 2017 17:58
Show Gist options
  • Save allgood2386/872786d81fe0bc15e2cd3452d041d823 to your computer and use it in GitHub Desktop.
Save allgood2386/872786d81fe0bc15e2cd3452d041d823 to your computer and use it in GitHub Desktop.
$node = ['119' => '119];
$node = $this->entityTypeManager->getStorage('node')->load(array_shift($nodes));
vs
$node = $this->entityTypeManager->getStorage('node')->loadMultiple($nodes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment