export_entity.page.inc in Content Synchronizer 8
Same filename and directory in other branches
Contains export_entity.page.inc.
Page callback for Export entity entities.
File
export_entity.page.incView source
<?php
/**
* @file
* Contains export_entity.page.inc.
*
* Page callback for Export entity entities.
*/
use Drupal\Core\Render\Element;
/**
* Prepares variables for Export entity templates.
*
* Default template: export_entity.html.twig.
*
* @param array $variables
* An associative array containing:
* - elements: An associative array containing the user information and any
* - attributes: HTML attributes for the containing element.
*/
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];
}
}
Functions
Name | Description |
---|---|
template_preprocess_export_entity | Prepares variables for Export entity templates. |