You are here

public function AuditLogEventInterface::setPreviousState in Audit Log 8

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

Stores the original state of the object before the event occurred.

Parameters

string $state: The name of the object state such as "published" or "active".

Return value

AuditLogEventInterface The current instance of the object.

1 method overrides AuditLogEventInterface::setPreviousState()
AuditLogEvent::setPreviousState in src/AuditLogEvent.php
Stores the original state of the object before the event occurred.

File

src/AuditLogEventInterface.php, line 80

Class

AuditLogEventInterface
Represents a single auditable event for logging.

Namespace

Drupal\audit_log

Code

public function setPreviousState($state);