public function AuditLogEvent::setPreviousState in Audit Log 8
Same name and namespace in other branches
- 8.2 src/AuditLogEvent.php \Drupal\audit_log\AuditLogEvent::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.
Overrides AuditLogEventInterface::setPreviousState
File
- src/
AuditLogEvent.php, line 113
Class
- AuditLogEvent
- Represents a single auditable event for logging.
Namespace
Drupal\audit_logCode
public function setPreviousState($state) {
$this->previousState = $state;
return $this;
}