Mercurial > hg > isophonics-drupal-site
comparison core/authorize.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
111 | 111 |
112 if (!empty($results['page_title'])) { | 112 if (!empty($results['page_title'])) { |
113 $page_title = $results['page_title']; | 113 $page_title = $results['page_title']; |
114 } | 114 } |
115 if (!empty($results['page_message'])) { | 115 if (!empty($results['page_message'])) { |
116 drupal_set_message($results['page_message']['message'], $results['page_message']['type']); | 116 \Drupal::messenger()->addMessage($results['page_message']['message'], $results['page_message']['type']); |
117 } | 117 } |
118 | 118 |
119 $content['authorize_report'] = [ | 119 $content['authorize_report'] = [ |
120 '#theme' => 'authorize_report', | 120 '#theme' => 'authorize_report', |
121 '#messages' => $results['messages'], | 121 '#messages' => $results['messages'], |
123 | 123 |
124 if (is_array($results['tasks'])) { | 124 if (is_array($results['tasks'])) { |
125 $links = $results['tasks']; | 125 $links = $results['tasks']; |
126 } | 126 } |
127 else { | 127 else { |
128 // Since this is being called outsite of the primary front controller, | 128 // Since this is being called outside of the primary front controller, |
129 // the base_url needs to be set explicitly to ensure that links are | 129 // the base_url needs to be set explicitly to ensure that links are |
130 // relative to the site root. | 130 // relative to the site root. |
131 // @todo Simplify with https://www.drupal.org/node/2548095 | 131 // @todo Simplify with https://www.drupal.org/node/2548095 |
132 $default_options = [ | 132 $default_options = [ |
133 '#type' => 'link', | 133 '#type' => 'link', |