You are here

function d8cache_process_username in Drupal 8 Cache Backport 7

Implements hook_process_username().

File

includes/theme.inc, line 11
Theme functions and hooks for the D8 caching system backport.

Code

function d8cache_process_username(&$variables) {
  if ($variables['uid'] > 0) {
    drupal_add_cache_tags(array(
      'user:' . $variables['uid'],
    ));
  }
}