You are here

function nodejs_nodejs_user_channels in Node.js integration 8

Same name and namespace in other branches
  1. 6 nodejs.module \nodejs_nodejs_user_channels()
  2. 7 nodejs.module \nodejs_nodejs_user_channels()

Implements hook_nodejs_user_channels().

File

./nodejs.module, line 451

Code

function nodejs_nodejs_user_channels($account) {
  if (\Drupal::config('nodejs.config')
    ->get('enable_userchannel') && $account->uid) {
    return array(
      'nodejs_user_' . $account->uid,
    );
  }
  return array();
}