You are here

public function AuditLogEvent::setEventType in Audit Log 8.2

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

Stores the type of event being reported.

Parameters

string $event_type: The type of event being reported. Example: "insert", "update", "delete".

Return value

AuditLogEventInterface The current instance of the object.

Overrides AuditLogEventInterface::setEventType

File

src/AuditLogEvent.php, line 105

Class

AuditLogEvent
Represents a single auditable event for logging.

Namespace

Drupal\audit_log

Code

public function setEventType($event_type) {
  $this->eventType = $event_type;
  return $this;
}