You are here

function template_preprocess_content_kanban_log in Content Planner 8

Prepares variables for Kanban Log templates.

Default template: content_kanban_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

modules/content_kanban/content_kanban_log.page.inc, line 22
Contains content_kanban_log.page.inc.

Code

function template_preprocess_content_kanban_log(array &$variables) {

  // Helpful $content variable for templates.
  foreach (Element::children($variables['elements']) as $key) {
    $variables['content'][$key] = $variables['elements'][$key];
  }
}