You are here

public function AuditLogEventInterface::setEntity in Audit Log 8

Same name and namespace in other branches
  1. 8.2 src/AuditLogEventInterface.php \Drupal\audit_log\AuditLogEventInterface::setEntity()

Stores the entity that triggered the audit event.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity being modified.

Return value

AuditLogEventInterface The current instance of the object.

1 method overrides AuditLogEventInterface::setEntity()
AuditLogEvent::setEntity in src/AuditLogEvent.php
Stores the entity that triggered the audit event.

File

src/AuditLogEventInterface.php, line 35

Class

AuditLogEventInterface
Represents a single auditable event for logging.

Namespace

Drupal\audit_log

Code

public function setEntity(EntityInterface $entity);