private function EnabledConfigurablePluginsConstraintValidator::getConfigurableEnabledDefinitions in Drupal 10
Gets all configurable CKEditor 5 plugin definitions that are enabled.
Return value
\Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition[] An array of enabled configurable CKEditor 5 plugin definitions.
1 call to EnabledConfigurablePluginsConstraintValidator::getConfigurableEnabledDefinitions()
- EnabledConfigurablePluginsConstraintValidator::validate in core/
modules/ ckeditor5/ src/ Plugin/ Validation/ Constraint/ EnabledConfigurablePluginsConstraintValidator.php
File
- core/
modules/ ckeditor5/ src/ Plugin/ Validation/ Constraint/ EnabledConfigurablePluginsConstraintValidator.php, line 68
Class
- EnabledConfigurablePluginsConstraintValidator
- Enabled configurable plugin settings validator.
Namespace
Drupal\ckeditor5\Plugin\Validation\ConstraintCode
private function getConfigurableEnabledDefinitions() : array {
$text_editor = $this
->createTextEditorObjectFromContext();
$enabled_definitions = $this->pluginManager
->getEnabledDefinitions($text_editor);
$configurable_enabled_definitions = array_filter($enabled_definitions, function (CKEditor5PluginDefinition $definition) : bool {
return $definition
->isConfigurable();
});
return $configurable_enabled_definitions;
}