You are here

public function AuditLogEventInterface::setUser in Audit Log 8

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

Stores the user that triggers the audit event.

Parameters

\Drupal\Core\Session\AccountInterface $user: The user object of the user performing an action to be logged.

Return value

AuditLogEventInterface The current instance of the object.

1 method overrides AuditLogEventInterface::setUser()
AuditLogEvent::setUser in src/AuditLogEvent.php
Stores the user that triggers the audit event.

File

src/AuditLogEventInterface.php, line 24

Class

AuditLogEventInterface
Represents a single auditable event for logging.

Namespace

Drupal\audit_log

Code

public function setUser(AccountInterface $user);