original_string: public function render_user_notification_preferences($user) {
          $processors = get_message_processors();
          $providers = message_get_providers_for_user($user->id);
  
          $preferences = \core_message\api::get_all_message_preferences($processors, $providers, $user);
          $notificationlistoutput = new \core_message\output\preferences\notification_list($processors, $providers,
              $preferences, $user);
          return $this->render_from_template('message/notification_preferences',
              $notificationlistoutput->export_for_template($this));
      }
code: public function render_user_notification_preferences($user) {
          $processors = get_message_processors();
          $providers = message_get_providers_for_user($user->id);
  
          $preferences = \core_message\api::get_all_message_preferences($processors, $providers, $user);
          $notificationlistoutput = new \core_message\output\preferences\notification_list($processors, $providers,
              $preferences, $user);
          return $this->render_from_template('message/notification_preferences',
              $notificationlistoutput->export_for_template($this));
      }
code_tokens: public function render_user_notification_preferences ( $ user ) { $ processors = get_message_processors ( ) ; $ providers = message_get_providers_for_user ( $ user -> id ) ; $ preferences = \ core_message \ api :: get_all_message_preferences ( $ processors , $ providers , $ user ) ; $ notificationlistoutput = new \ core_message \ output \ preferences \ notification_list ( $ processors , $ providers , $ preferences , $ user ) ; return $ this -> render_from_template ( 'message/notification_preferences' , $ notificationlistoutput -> export_for_template ( $ this ) ) ; }
docstring: Display the interface for notification preferences
  
  @param object $user instance of a user
  @return string The text to render
docstring_tokens: Display the interface for notification preferences