class DrupalAspectsOfCKEditor5Plugin
Same name in this branch
- 11.x core/modules/ckeditor5/src/Annotation/DrupalAspectsOfCKEditor5Plugin.php \Drupal\ckeditor5\Annotation\DrupalAspectsOfCKEditor5Plugin
Same name in other branches
- 9 core/modules/ckeditor5/src/Annotation/DrupalAspectsOfCKEditor5Plugin.php \Drupal\ckeditor5\Annotation\DrupalAspectsOfCKEditor5Plugin
- 10 core/modules/ckeditor5/src/Annotation/DrupalAspectsOfCKEditor5Plugin.php \Drupal\ckeditor5\Annotation\DrupalAspectsOfCKEditor5Plugin
- 10 core/modules/ckeditor5/src/Attribute/DrupalAspectsOfCKEditor5Plugin.php \Drupal\ckeditor5\Attribute\DrupalAspectsOfCKEditor5Plugin
Hierarchy
- class \Drupal\Component\Plugin\Attribute\AttributeBase implements \Drupal\Component\Plugin\Attribute\AttributeInterface
- class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
- class \Drupal\ckeditor5\Attribute\DrupalAspectsOfCKEditor5Plugin extends \Drupal\Component\Plugin\Attribute\Plugin
- class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
Expanded class hierarchy of DrupalAspectsOfCKEditor5Plugin
File
-
core/
modules/ ckeditor5/ src/ Attribute/ DrupalAspectsOfCKEditor5Plugin.php, line 11
Namespace
Drupal\ckeditor5\AttributeView source
class DrupalAspectsOfCKEditor5Plugin extends Plugin {
/**
* Constructs a DrupalAspectsOfCKEditor5Plugin attribute.
*
* @param string|\Drupal\Core\StringTranslation\TranslatableMarkup|null $label
* (optional) The human-readable name of the CKEditor plugin. Required
* unless set by deriver.
* @param class-string $class
* (optional) The CKEditor 5 plugin class.If not specified, the
* CKEditor5PluginDefault class is used.
* @param string|false $library
* (optional) The library this plugin requires.
* @param string|false $admin_library
* (optional) The admin library this plugin provides.
* @param string[]|false|null $elements
* (optional) List of elements and attributes provided. An array of strings,
* or false if no elements are provided. Required unless set by deriver.
* Syntax for each array value:
* - <element> only allows that HTML element with no attributes
* - <element attrA attrB> only allows that HTML element with attributes
* attrA and attrB, and any value for those attributes.
* - <element attrA="foo bar baz" attrB="qux-*"> only allows that HTML
* element with attributes attrA (if attrA contains one of the three
* listed values) and attrB (if its value has the provided prefix).
* - <element data-*> only allows that HTML element with any attribute that
* has the given prefix.
* Note that <element> means such an element (tag) can be created, whereas
* <element attrA attrB> means that `attrA` and `attrB` can be created on
* the tag. If a plugin supports both creating the element as well as
* setting some attributes or attribute values on it, it should have
* distinct entries in the list.
* For example, for a link plugin: `<a>` and `<a href>`. The first indicates
* the plugin can create such tags, the second indicates it can set the
* `href` attribute on it. If the first were omitted, the Drupal CKEditor 5
* module would interpret that as "this plugin cannot create `<a>`, it can
* only set the `href` attribute on it".
* @param array $toolbar_items
* (optional) List of toolbar items the plugin provides.
* @param array|false $conditions
* (optional) List of conditions to enable this plugin.
* @param class-string|null $deriver
* (optional) The deriver class.
*
* @see \Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::getCreatableElements()
*/
public function __construct(string|TranslatableMarkup|null $label = NULL, string $class = CKEditor5PluginDefault::class, string|false $library = FALSE, string|false $admin_library = FALSE, array|false|null $elements = NULL, array $toolbar_items = [], array|false $conditions = FALSE, ?string $deriver = NULL) {
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
AttributeBase::$class | protected | property | The class used for this attribute class. | ||
AttributeBase::$provider | protected | property | The provider of the attribute class. | ||
AttributeBase::get | public | function | Overrides AttributeInterface::get | 6 | |
AttributeBase::getClass | public | function | Overrides AttributeInterface::getClass | 1 | |
AttributeBase::getId | public | function | Overrides AttributeInterface::getId | ||
AttributeBase::getProvider | public | function | Overrides AttributeInterface::getProvider | ||
AttributeBase::setClass | public | function | Overrides AttributeInterface::setClass | 1 | |
AttributeBase::setProvider | public | function | Overrides AttributeInterface::setProvider | ||
DrupalAspectsOfCKEditor5Plugin::__construct | public | function | Constructs a DrupalAspectsOfCKEditor5Plugin attribute. | Overrides Plugin::__construct |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.