original_string: public static function create_user_field_mapping($data) {
          require_capability('moodle/site:config', context_system::instance());
          $userfieldmapping = new user_field_mapping(0, $data);
  
          // Will throw exceptions on validation failures.
          $userfieldmapping->create();
          return $userfieldmapping;
      }
code: public static function create_user_field_mapping($data) {
          require_capability('moodle/site:config', context_system::instance());
          $userfieldmapping = new user_field_mapping(0, $data);
  
          // Will throw exceptions on validation failures.
          $userfieldmapping->create();
          return $userfieldmapping;
      }
code_tokens: public static function create_user_field_mapping ( $ data ) { require_capability ( 'moodle/site:config' , context_system :: instance ( ) ) ; $ userfieldmapping = new user_field_mapping ( 0 , $ data ) ; // Will throw exceptions on validation failures. $ userfieldmapping -> create ( ) ; return $ userfieldmapping ; }
docstring: Take the data from the mform and create the user field mapping.
  
  @param stdClass $data
  @return \core\oauth2\user_field_mapping
docstring_tokens: Take the data from the mform and create the user field mapping .