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];
    }
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];
    }
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 ] ; }
Options for editor

@param \context|null $context context if known, otherwise configuration context will be used
@return array
Options for editor