You are here

function template_preprocess_export_entity in Content Synchronizer 8.2

Same name and namespace in other branches
  1. 8 export_entity.page.inc \template_preprocess_export_entity()
  2. 3.x export_entity.page.inc \template_preprocess_export_entity()

Prepares variables for Export entity templates.

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

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

Code

function template_preprocess_export_entity(array &$variables) {

  // Fetch ExportEntity Entity Object.
  $export_entity = $variables['elements']['#export_entity'];

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