pm_board.page.inc in Drupal PM (Project Management) 4.x
Contains pm_board.page.inc.
Page callback for Board entities.
File
modules/pm_board/pm_board.page.incView source
<?php
/**
* @file
* Contains pm_board.page.inc.
*
* Page callback for Board entities.
*/
use Drupal\Core\Render\Element;
/**
* Prepares variables for Board templates.
*
* Default template: pm_board.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_pm_board(array &$variables) {
// Fetch Board Entity Object.
$pm_board = $variables['elements']['#pm_board'];
// Helpful $content variable for templates.
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
}
Functions
Name | Description |
---|---|
template_preprocess_pm_board | Prepares variables for Board templates. |