alert_types-8.x-1.x-dev/alert_types.page.inc

alert_types.page.inc
<?php

/**
 * @file
 * Contains alert_types.page.inc.
 *
 * Page callback for Alert entities.
 */

use Drupal\Core\Render\Element;

/**
 * Prepares variables for Alert templates.
 *
 * Default template: alert.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_alert(array &$variables) {
  // Helpful $content variable for templates.
  foreach (Element::children($variables['elements']) as $key) {
    $variables['content'][$key] = $variables['elements'][$key];
  }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc