public function LogStorage::loadMultipleByEntity in Commerce Core 8.2
Loads all logs for an entity.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity.
Return value
\Drupal\commerce_log\Entity\LogInterface[] The logs.
Overrides LogStorageInterface::loadMultipleByEntity
File
- modules/
log/ src/ LogStorage.php, line 93
Class
Namespace
Drupal\commerce_logCode
public function loadMultipleByEntity(ContentEntityInterface $entity) {
return $this
->loadByProperties([
'source_entity_id' => $entity
->id(),
'source_entity_type' => $entity
->getEntityTypeId(),
]);
}