function Contrib::computeCKEditor5PluginSubsetConfiguration
Same name and namespace in other branches
- 9 core/modules/ckeditor5/src/Plugin/CKEditor4To5Upgrade/Contrib.php \Drupal\ckeditor5\Plugin\CKEditor4To5Upgrade\Contrib::computeCKEditor5PluginSubsetConfiguration()
- 11.x core/modules/ckeditor5/src/Plugin/CKEditor4To5Upgrade/Contrib.php \Drupal\ckeditor5\Plugin\CKEditor4To5Upgrade\Contrib::computeCKEditor5PluginSubsetConfiguration()
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.
Parameters
string $cke5_plugin_id: The CKEditor 5 plugin whose subset configuration needs to be computed.
\Drupal\filter\FilterFormatInterface $text_format: The text format based on whose restrictions this should be computed.
Return value
array|null NULL if not needed, otherwise a configuration array (which can itself be a subset of the default configuration of this CKEditor 5 plugin: perhaps only some of the configuration values determine the subset).
Overrides CKEditor4To5UpgradePluginInterface::computeCKEditor5PluginSubsetConfiguration
File
-
core/
modules/ ckeditor5/ src/ Plugin/ CKEditor4To5Upgrade/ Contrib.php, line 81
Class
- Contrib
- Provides the CKEditor 4 to 5 upgrade path for contrib plugins now in core.
Namespace
Drupal\ckeditor5\Plugin\CKEditor4To5UpgradeCode
public function computeCKEditor5PluginSubsetConfiguration(string $cke5_plugin_id, FilterFormatInterface $text_format) : ?array {
throw new \OutOfBoundsException();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.