else { return FALSE;
} $entities =
$this->entityTypeManager->
getStorage($entity_type)->
loadMultiple($ids);
// Validate each id => entity. If any fails break out and return false.
foreach ($ids as $id) { // There is no entity for this ID.
if (!
isset($entities[$id])) { return FALSE;
} if (!
$this->
validateEntity($entities[$id])) { return FALSE;
} } return TRUE;
} /**
* Validates an individual entity against class access settings.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity.
*
* @return bool
* True if validated.
*/