You are here

public function AuditLogEvent::getPreviousState in Audit Log 8.2

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

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

Return value

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

Overrides AuditLogEventInterface::getPreviousState

File

src/AuditLogEvent.php, line 172

Class

AuditLogEvent
Represents a single auditable event for logging.

Namespace

Drupal\audit_log

Code

public function getPreviousState() {
  return $this->previousState;
}