/**
  * Fetch the tokens for the current user.
  *
  * @return array: List of tokens keyed by token type
  */
 protected function contextUserTokens()
 {
     global $wgUser;
     return array('editToken' => $wgUser->getEditToken(), 'patrolToken' => ApiQueryRecentChanges::getPatrolToken(null, null), 'watchToken' => ApiQueryInfo::getWatchToken(null, null));
 }
 /**
  * Fetch the tokens for the current user.
  *
  * @param $context ResourceLoaderContext: Context object
  * @return Array: List of tokens keyed by token type
  */
 protected function contextUserTokens(ResourceLoaderContext $context)
 {
     global $wgUser;
     return array('editToken' => $wgUser->getEditToken(), 'watchToken' => ApiQueryInfo::getWatchToken(null, null));
 }