Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
tiny_noautolink\plugininfo Class Reference
Inheritance diagram for tiny_noautolink\plugininfo:
editor_tiny\plugin editor_tiny\plugin_with_buttons editor_tiny\plugin_with_menuitems

Static Public Member Functions

static get_available_buttons ()
 Get a list of the buttons provided by this plugin.
 
static get_available_menuitems ()
 Get a list of the menu items provided by this plugin.
 
static get_plugin_info (context $context, array $options, array $fpoptions, ?editor $editor=null)
 Get the plugin information for the plugin.
 
static is_enabled (context $context, array $options, array $fpoptions, ?editor $editor=null)
 Whether the plugin is enabled and accessible (e.g.
 
static is_enabled_for_external (context $context, array $options)
 Whether the plugin is enabled and accessible for external functions.
 

Member Function Documentation

◆ get_available_buttons()

static tiny_noautolink\plugininfo::get_available_buttons ( )
static

Get a list of the buttons provided by this plugin.

Return values
string[]

Implements editor_tiny\plugin_with_buttons.

◆ get_available_menuitems()

static tiny_noautolink\plugininfo::get_available_menuitems ( )
static

Get a list of the menu items provided by this plugin.

Return values
string[]

Implements editor_tiny\plugin_with_menuitems.

◆ get_plugin_info()

static editor_tiny\plugin::get_plugin_info ( context $context,
array $options,
array $fpoptions,
?editor $editor = null )
staticfinalinherited

Get the plugin information for the plugin.

Parameters
context$contextThe context that the editor is used within
array$optionsThe options passed in when requesting the editor
array$fpoptionsThe filepicker options passed in when requesting the editor
editor$editorThe editor instance in which the plugin is initialised
Return values
array

◆ is_enabled()

static editor_tiny\plugin::is_enabled ( context $context,
array $options,
array $fpoptions,
?editor $editor = null )
staticinherited

Whether the plugin is enabled and accessible (e.g.

capability checks).

Parameters
context$contextThe context that the editor is used within
array$optionsThe options passed in when requesting the editor
array$fpoptionsThe filepicker options passed in when requesting the editor
editor$editorThe editor instance in which the plugin is initialised
Return values
boolean

Reimplemented in tiny_aiplacement\plugininfo, tiny_media\plugininfo, tiny_premium\plugininfo, and tiny_recordrtc\plugininfo.

◆ is_enabled_for_external()

static editor_tiny\plugin::is_enabled_for_external ( context $context,
array $options )
staticinherited

Whether the plugin is enabled and accessible for external functions.

Parameters
context$contextThe context that the editor is used within.
array$optionsAdditional options:
  • pluginname: Name of the plugin, without the "tiny_" prefix.
Return values
bool

Reimplemented in tiny_aiplacement\plugininfo, tiny_media\plugininfo, and tiny_recordrtc\plugininfo.


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