interface CKEditor5PluginElementsSubsetInterface

Same name and namespace in other branches
  1. 10 core/modules/ckeditor5/src/Plugin/CKEditor5PluginElementsSubsetInterface.php \Drupal\ckeditor5\Plugin\CKEditor5PluginElementsSubsetInterface
  2. 11.x core/modules/ckeditor5/src/Plugin/CKEditor5PluginElementsSubsetInterface.php \Drupal\ckeditor5\Plugin\CKEditor5PluginElementsSubsetInterface

Defines an interface for plugins that can support an elements subset.

Plugins can support multiple elements in the `elements` property of their definition. A text format may want to use a given plugin without supporting every supported element. Plugins that implement this interface return a subset based on the configuration in the Text Editor's settings.

Hierarchy

Expanded class hierarchy of CKEditor5PluginElementsSubsetInterface

All classes that implement CKEditor5PluginElementsSubsetInterface

10 files declare their use of CKEditor5PluginElementsSubsetInterface
Alignment.php in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Alignment.php
CKEditor4to5UpgradeCompletenessTest.php in core/modules/ckeditor5/tests/src/Kernel/CKEditor4to5UpgradeCompletenessTest.php
FundamentalCompatibilityConstraintValidator.php in core/modules/ckeditor5/src/Plugin/Validation/Constraint/FundamentalCompatibilityConstraintValidator.php
Heading.php in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Heading.php
ListPlugin.php in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/ListPlugin.php

... See full list

File

core/modules/ckeditor5/src/Plugin/CKEditor5PluginElementsSubsetInterface.php, line 15

Namespace

Drupal\ckeditor5\Plugin
View source
interface CKEditor5PluginElementsSubsetInterface extends CKEditor5PluginConfigurableInterface {
  
  /**
   * Returns a configured subset of the elements supported by this plugin.
   *
   * @return string[]
   *   An array of supported elements.
   */
  public function getElementsSubset() : array;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
CKEditor5PluginElementsSubsetInterface::getElementsSubset public function Returns a configured subset of the elements supported by this plugin. 7
CKEditor5PluginInterface::getDynamicPluginConfig public function Allows a plugin to modify its static configuration. 1
ConfigurableInterface::defaultConfiguration public function Gets default configuration for this plugin. 24
ConfigurableInterface::getConfiguration public function Gets this plugin's configuration. 15
ConfigurableInterface::setConfiguration public function Sets the configuration for this plugin instance. 15
PluginFormInterface::buildConfigurationForm public function Form constructor. 47
PluginFormInterface::submitConfigurationForm public function Form submission handler. 42
PluginFormInterface::validateConfigurationForm public function Form validation handler. 28
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.