original_string: protected function get_submission_plugin() {
          global $CFG;
          if (!$this->plugin || !$this->cmid) {
              return null;
          }
  
          require_once($CFG->dirroot . '/mod/assign/locallib.php');
  
          $context = context_module::instance($this->cmid);
  
          $assignment = new assign($context, null, null);
          return $assignment->get_submission_plugin_by_type($this->plugin);
      }
code: protected function get_submission_plugin() {
          global $CFG;
          if (!$this->plugin || !$this->cmid) {
              return null;
          }
  
          require_once($CFG->dirroot . '/mod/assign/locallib.php');
  
          $context = context_module::instance($this->cmid);
  
          $assignment = new assign($context, null, null);
          return $assignment->get_submission_plugin_by_type($this->plugin);
      }
code_tokens: protected function get_submission_plugin ( ) { global $ CFG ; if ( ! $ this -> plugin || ! $ this -> cmid ) { return null ; } require_once ( $ CFG -> dirroot . '/mod/assign/locallib.php' ) ; $ context = context_module :: instance ( $ this -> cmid ) ; $ assignment = new assign ( $ context , null , null ) ; return $ assignment -> get_submission_plugin_by_type ( $ this -> plugin ) ; }
docstring: Fetch the plugin by its type.
  
  @return assign_submission_plugin
docstring_tokens: Fetch the plugin by its type .