CKEditor4To5UpgradePluginInterface
interface CKEditor4To5UpgradePluginInterface implements PluginInspectionInterface (View source)
Defines an interface for CKEditor 4 to 5 upgrade plugins.
Methods
Gets the definition of the plugin implementation.
Maps a CKEditor 4 button to the CKEditor 5 equivalent, if it exists.
Maps CKEditor 4 settings to the CKEditor 5 equivalent, if needed.
Computes elements subset configuration for CKEditor 5 plugin.
Details
string
getPluginId()
Gets the plugin_id of the plugin instance.
array
getPluginDefinition()
Gets the definition of the plugin implementation.
string|null
mapCKEditor4ToolbarButtonToCKEditor5ToolbarItem(string $cke4_button)
Maps a CKEditor 4 button to the CKEditor 5 equivalent, if it exists.
Generated by inspecting all \Drupal\ckeditor\CKEditorPluginButtonsInterface implementations.
array|null
mapCKEditor4SettingsToCKEditor5Configuration(string $cke4_plugin_id, array $cke4_plugin_settings)
Maps CKEditor 4 settings to the CKEditor 5 equivalent, if needed.
Not every CKEditor 5 plugin has settings; some CKEditor 5 plugins may have settings that the CKEditor 4 equivalent did not and vice versa. Therefore the complete CKEditor 4 settings are provided, and any CKEditor 5 setting can be set.
array|null
computeCKEditor5PluginSubsetConfiguration(string $cke5_plugin_id, FilterFormatInterface $text_format)
Computes elements subset configuration for CKEditor 5 plugin.
Every CKEditor 5 plugin that implements the elements subset interface must implement this as well, to ensure a smooth upgrade path.