gelstudenthighschool.page.inc 861 Bytes
Newer Older
Ασπασία Κατσή's avatar
Ασπασία Κατσή committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
<?php

/**
 * @file
 * Contains gelstudenthighschool.page.inc.
 *
 * Page callback for Gelstudenthighschool entities.
 */

use Drupal\Core\Render\Element;

/**
 * Prepares variables for Gelstudenthighschool templates.
 *
 * Default template: gelstudenthighschool.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_gelstudenthighschool(array &$variables) {
  // Fetch gelstudenthighschool Entity Object.
  $gelstudenthighschool = $variables['elements']['#gelstudenthighschool'];

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