function contribute_preprocess_status_report_page in Contribute 8
Process variables for status-report-page.html.twig.
See also
system/templates/status-report-page.html.twig
File
- ./
contribute.module, line 66 - Encourages people to join and contribute to the Drupal community.
Code
function contribute_preprocess_status_report_page(&$variables) {
/** @var \Drupal\contribute\ContributeManagerInterface $contribute_manager */
$contribute_manager = \Drupal::service('contribute.manager');
if ($contribute_manager
->getStatus()) {
$variables['general_info'] = [
'contribute_info' => [
'#theme' => 'contribute_status_report_community_info',
'#account' => $contribute_manager
->getAccount(),
'#membership' => $contribute_manager
->getMembership(),
'#contribution' => $contribute_manager
->getContribution(),
],
'general_info' => $variables['general_info'],
];
}
}