You are here

public function AuditLogStorage::save in Audit Log 8.2

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

Writes the audit event to each available logging destination.

Parameters

\Drupal\audit_log\AuditLogEventInterface $event: The audit event to be logged.

File

src/AuditLogStorage.php, line 26

Class

AuditLogStorage
Writes audit log events to enabled logging destinations.

Namespace

Drupal\audit_log

Code

public function save(AuditLogEventInterface $event) {
  foreach ($this
    ->sortStorageBackends() as $storage_backend) {
    $storage_backend
      ->save($event);
  }
}