getNodesByIdentifier() public méthode

Note UUIDs that are not found will be ignored. Also, duplicate IDs will be eliminated by nature of using the IDs as keys.
See also: Session::getNodesByIdentifier()
public getNodesByIdentifier ( array $identifiers, string $class = 'Node' ) : ArrayIterato\ArrayIterator | Node[]
$identifiers array UUIDs of nodes to retrieve.
$class string Optional class name for the factory.
Résultat ArrayIterato\ArrayIterator | Node[] Iterator of the specified nodes keyed by their unique ids
Exemple #1
0
 /**
  * {@inheritDoc}
  *
  * @api
  */
 public function getNodesByIdentifier($ids)
 {
     if (!is_array($ids) && !$ids instanceof \Traversable) {
         $hint = is_object($ids) ? get_class($ids) : gettype($ids);
         throw new InvalidArgumentException("Not a valid array or Traversable: {$hint}");
     }
     return $this->objectManager->getNodesByIdentifier($ids);
 }