You are here

public function AuditLogEvent::setCurrentState in Audit Log 8

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

Stores the new state of the object after 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::setCurrentState

File

src/AuditLogEvent.php, line 121

Class

AuditLogEvent
Represents a single auditable event for logging.

Namespace

Drupal\audit_log

Code

public function setCurrentState($state) {
  $this->currentState = $state;
  return $this;
}