You are here

function template_preprocess_data_policy in Data Policy 8

Prepares variables for Data policy templates.

Default template: data_policy.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

./data_policy.page.inc, line 22
Contains data_policy.page.inc.

Code

function template_preprocess_data_policy(array &$variables) {

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