You are here

public function AuditLogEvent::getUser in Audit Log 8

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

Retrieves the user object for the user that triggered the event.

Return value

\Drupal\Core\Session\AccountInterface The user object for the user that triggered the event.

Overrides AuditLogEventInterface::getUser

File

src/AuditLogEvent.php, line 137

Class

AuditLogEvent
Represents a single auditable event for logging.

Namespace

Drupal\audit_log

Code

public function getUser() {
  return $this->user;
}