You are here

public function WebformSubmissionLogManagerInterface::loadByEntities in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_submission_log/src/WebformSubmissionLogManagerInterface.php \Drupal\webform_submission_log\WebformSubmissionLogManagerInterface::loadByEntities()

Log webform submission logs.

Parameters

\Drupal\Core\Entity\EntityInterface|null $webform_entity: A webform or webform submission entity.

\Drupal\Core\Entity\EntityInterface|null $source_entity: (optional) A webform submission source entity.

\Drupal\Core\Session\AccountInterface $account: The current user account.

array $options: (optional) Additional options and query conditions.

Return value

array An array of webform submission logs. Log entry object includes:

  • lid: (int) ID of the log entry.
  • sid: (int) Webform submission ID on which the operation was executed.
  • uid: (int) UID of the user that executed the operation.
  • handler_id: (string) Optional name of the handler that executed the operation.
  • operation: (string) Name of the executed operation.
  • message: (string) Untranslated message of the executed operation.
  • variables: (array) Variables to use whenever message has to be translated.
  • data: (array) Data associated with this log entry.
  • timestamp: (int) Timestamp when the operation was executed.
1 method overrides WebformSubmissionLogManagerInterface::loadByEntities()
WebformSubmissionLogManager::loadByEntities in modules/webform_submission_log/src/WebformSubmissionLogManager.php
Log webform submission logs.

File

modules/webform_submission_log/src/WebformSubmissionLogManagerInterface.php, line 70

Class

WebformSubmissionLogManagerInterface
Interface for webform submission log manager.

Namespace

Drupal\webform_submission_log

Code

public function loadByEntities(EntityInterface $webform_entity = NULL, EntityInterface $source_entity = NULL, AccountInterface $account = NULL, array $options = []);