Loading markerio.module +6 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,9 @@ function markerio_page_attachments(&$attachments) { $user = \Drupal::currentUser(); $attachments['#cache']['contexts'][] = 'user'; $attachments['#cache']['tags'][] = 'config:markerio.settings'; if ($user->hasPermission('access markerio') && isset($destination)) { // Get username and e-mailaddress. $user_email = FALSE; Loading @@ -32,5 +35,7 @@ function markerio_page_attachments(&$attachments) { $attachments['#attached']['drupalSettings']['markerio']['destination'] = $destination; $attachments['#attached']['drupalSettings']['markerio']['user_email'] = $user_email; $attachments['#attached']['drupalSettings']['markerio']['user_name'] = $user_name; $attachments['#cache']['tags'][] = 'user:' . $user->id(); } } Loading
markerio.module +6 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,9 @@ function markerio_page_attachments(&$attachments) { $user = \Drupal::currentUser(); $attachments['#cache']['contexts'][] = 'user'; $attachments['#cache']['tags'][] = 'config:markerio.settings'; if ($user->hasPermission('access markerio') && isset($destination)) { // Get username and e-mailaddress. $user_email = FALSE; Loading @@ -32,5 +35,7 @@ function markerio_page_attachments(&$attachments) { $attachments['#attached']['drupalSettings']['markerio']['destination'] = $destination; $attachments['#attached']['drupalSettings']['markerio']['user_email'] = $user_email; $attachments['#attached']['drupalSettings']['markerio']['user_name'] = $user_name; $attachments['#cache']['tags'][] = 'user:' . $user->id(); } }