original_string: public static function get_workshop_access_information_returns() {
  
          $structure = array(
              'creatingsubmissionallowed' => new external_value(PARAM_BOOL,
                  'Is the given user allowed to create their submission?'),
              'modifyingsubmissionallowed' => new external_value(PARAM_BOOL,
                  'Is the user allowed to modify his existing submission?'),
              'assessingallowed' => new external_value(PARAM_BOOL,
                  'Is the user allowed to create/edit his assessments?'),
              'assessingexamplesallowed' => new external_value(PARAM_BOOL,
                  'Are reviewers allowed to create/edit their assessments of the example submissions?.'),
              'examplesassessedbeforesubmission' => new external_value(PARAM_BOOL,
                  'Whether the given user has assessed all his required examples before submission
                  (always true if there are not examples to assess or not configured to check before submission).'),
              'examplesassessedbeforeassessment' => new external_value(PARAM_BOOL,
                  'Whether the given user has assessed all his required examples before assessment
                  (always true if there are not examples to assessor not configured to check before assessment).'),
              'warnings' => new external_warnings()
          );
  
          $capabilities = load_capability_def('mod_workshop');
          foreach ($capabilities as $capname => $capdata) {
              // Get fields like cansubmit so it is consistent with the access_information function implemented in other modules.
              $field = 'can' . str_replace('mod/workshop:', '', $capname);
              $structure[$field] = new external_value(PARAM_BOOL, 'Whether the user has the capability ' . $capname . ' allowed.');
          }
  
          return new external_single_structure($structure);
      }
code: public static function get_workshop_access_information_returns() {
  
          $structure = array(
              'creatingsubmissionallowed' => new external_value(PARAM_BOOL,
                  'Is the given user allowed to create their submission?'),
              'modifyingsubmissionallowed' => new external_value(PARAM_BOOL,
                  'Is the user allowed to modify his existing submission?'),
              'assessingallowed' => new external_value(PARAM_BOOL,
                  'Is the user allowed to create/edit his assessments?'),
              'assessingexamplesallowed' => new external_value(PARAM_BOOL,
                  'Are reviewers allowed to create/edit their assessments of the example submissions?.'),
              'examplesassessedbeforesubmission' => new external_value(PARAM_BOOL,
                  'Whether the given user has assessed all his required examples before submission
                  (always true if there are not examples to assess or not configured to check before submission).'),
              'examplesassessedbeforeassessment' => new external_value(PARAM_BOOL,
                  'Whether the given user has assessed all his required examples before assessment
                  (always true if there are not examples to assessor not configured to check before assessment).'),
              'warnings' => new external_warnings()
          );
  
          $capabilities = load_capability_def('mod_workshop');
          foreach ($capabilities as $capname => $capdata) {
              // Get fields like cansubmit so it is consistent with the access_information function implemented in other modules.
              $field = 'can' . str_replace('mod/workshop:', '', $capname);
              $structure[$field] = new external_value(PARAM_BOOL, 'Whether the user has the capability ' . $capname . ' allowed.');
          }
  
          return new external_single_structure($structure);
      }
code_tokens: public static function get_workshop_access_information_returns ( ) { $ structure = array ( 'creatingsubmissionallowed' => new external_value ( PARAM_BOOL , 'Is the given user allowed to create their submission?' ) , 'modifyingsubmissionallowed' => new external_value ( PARAM_BOOL , 'Is the user allowed to modify his existing submission?' ) , 'assessingallowed' => new external_value ( PARAM_BOOL , 'Is the user allowed to create/edit his assessments?' ) , 'assessingexamplesallowed' => new external_value ( PARAM_BOOL , 'Are reviewers allowed to create/edit their assessments of the example submissions?.' ) , 'examplesassessedbeforesubmission' => new external_value ( PARAM_BOOL , 'Whether the given user has assessed all his required examples before submission
                  (always true if there are not examples to assess or not configured to check before submission).' ) , 'examplesassessedbeforeassessment' => new external_value ( PARAM_BOOL , 'Whether the given user has assessed all his required examples before assessment
                  (always true if there are not examples to assessor not configured to check before assessment).' ) , 'warnings' => new external_warnings ( ) ) ; $ capabilities = load_capability_def ( 'mod_workshop' ) ; foreach ( $ capabilities as $ capname => $ capdata ) { // Get fields like cansubmit so it is consistent with the access_information function implemented in other modules. $ field = 'can' . str_replace ( 'mod/workshop:' , '' , $ capname ) ; $ structure [ $ field ] = new external_value ( PARAM_BOOL , 'Whether the user has the capability ' . $ capname . ' allowed.' ) ; } return new external_single_structure ( $ structure ) ; }
docstring: Describes the get_workshop_access_information return value.
  
  @return external_single_structure
  @since Moodle 3.4
docstring_tokens: Describes the get_workshop_access_information return value .