Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
editor_tiny\external\get_configuration Class Reference
Inheritance diagram for editor_tiny\external\get_configuration:

Static Public Member Functions

static execute (string $contextlevel, int $instanceid)
 Returns the TinyMCE configuration for a context.
 
static execute_parameters ()
 Describes the parameters of the external function.
 
static execute_returns ()
 Describes the return structure of the external function.
 

Member Function Documentation

◆ execute()

static editor_tiny\external\get_configuration::execute ( string $contextlevel,
int $instanceid )
static

Returns the TinyMCE configuration for a context.

This function serves a similar purpose as editor_tiny\editor\use_editor but with the following differences:

  • It does not receive editor or file picker options.
  • It only returns information that depends on site settings or permission checks.
Parameters
string$contextlevelContext level: system, user, coursecat, course, module or block.
int$instanceidInstance ID of the context (e.g. course ID).
Return values
array

◆ execute_parameters()

static editor_tiny\external\get_configuration::execute_parameters ( )
static

Describes the parameters of the external function.

Return values
external_function_parameters

◆ execute_returns()

static editor_tiny\external\get_configuration::execute_returns ( )
static

Describes the return structure of the external function.

Return values
external_single_structure

The documentation for this class was generated from the following file: