original_string: public function value_editor_options(\context $context = null) {
          global $CFG;
          require_once($CFG->libdir.'/formslib.php');
          if (!$context) {
              $context = $this->get_handler()->get_configuration_context();
          }
          return ['maxfiles' => EDITOR_UNLIMITED_FILES, 'maxbytes' => $CFG->maxbytes, 'context' => $context];
      }
code: public function value_editor_options(\context $context = null) {
          global $CFG;
          require_once($CFG->libdir.'/formslib.php');
          if (!$context) {
              $context = $this->get_handler()->get_configuration_context();
          }
          return ['maxfiles' => EDITOR_UNLIMITED_FILES, 'maxbytes' => $CFG->maxbytes, 'context' => $context];
      }
code_tokens: public function value_editor_options ( \ context $ context = null ) { global $ CFG ; require_once ( $ CFG -> libdir . '/formslib.php' ) ; if ( ! $ context ) { $ context = $ this -> get_handler ( ) -> get_configuration_context ( ) ; } return [ 'maxfiles' => EDITOR_UNLIMITED_FILES , 'maxbytes' => $ CFG -> maxbytes , 'context' => $ context ] ; }
docstring: Options for editor
  
  @param \context|null $context context if known, otherwise configuration context will be used
  @return array
docstring_tokens: Options for editor