You are here

function template_preprocess_audit_log in Audit Log 8.2

Prepares variables for Audit log templates.

Default template: audit-log.html.twig.

Parameters

array $variables: An associative array containing:

  • elements: An associative array containing the user information and any
  • attributes: HTML attributes for the containing element.

File

./audit_log.page.inc, line 20
Contains audit_log.page.inc.

Code

function template_preprocess_audit_log(array &$variables) {

  // Fetch AuditLog Entity Object.
  $audit_log = $variables['element']['#audit_log'];
}