Skip to content
Snippets Groups Projects
Commit 6fef7476 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

EXPHR: make the WCMS version link to the release notes list

parent c54053a1
No related branches found
No related tags found
1 merge request!40Feature/exptime kpaxman site info
......@@ -161,11 +161,9 @@ function uw_dashboard_views_pre_execute(ViewExecutable $view) {
*/
function uw_dashboard_preprocess_page(&$variables) {
if (\Drupal::routeMatch()->getRouteName() == 'entity.dashboard.canonical') {
// Start building the site info string.
$string = 'WCMS ';
// Get the profile version.
$string .= \Drupal::service('extension.list.profile')->getList()['uw_base_profile']->info['version'];
// Start building the site info string with the version information.
$string = 'WCMS version ' . \Drupal::service('extension.list.profile')->getList()['uw_base_profile']->info['version'];
$string = Link::fromTextAndUrl($string, Url::fromUri('https://uwaterloo.ca/web-resources/news?tags[90]=90'))->toString();
// Get the website lead(s).
$query = \Drupal::entityQuery('user')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment