public function CKEditor5PluginDefinition::hasElements in Drupal 10
Whether this plugin allows creating/editing elements and attributes.
Return value
bool
See also
\Drupal\ckeditor5\Annotation\DrupalAspectsOfCKEditor5Plugin::$elements
2 calls to CKEditor5PluginDefinition::hasElements()
- CKEditor5PluginDefinition::getCreatableElements in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginDefinition.php - Gets the elements this plugin allows to create.
- CKEditor5PluginDefinition::getElements in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginDefinition.php - Gets the list of elements and attributes this plugin allows to create/edit.
File
- core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginDefinition.php, line 505
Class
- CKEditor5PluginDefinition
- Provides an implementation of a CKEditor 5 plugin definition.
Namespace
Drupal\ckeditor5\PluginCode
public function hasElements() : bool {
return $this->drupal['elements'] !== FALSE;
}