1 ckeditor5.module _ckeditor5_image_alignment_plugin_check($format, $plugin_name)

Enabled callback for hook_ckeditor5_plugins().

Checks if the Image Alignment configuration should be loaded. Note that the alignment functionality is part of the backdropImage.BackdropImage plugin, so this does not actually enable an additional plugin, but rather only adds the configuration needed to enable image alignment.

Parameters

object $format: The filter format object for which CKEditor is checking settings.

string $plugin_name: The plugin that is being checked.

Return value

bool: TRUE if the image plugin is enabled, FALSE otherwise.

File

core/modules/ckeditor5/ckeditor5.module, line 902
Provides integration with the CKEditor WYSIWYG editor.

Code

function _ckeditor5_image_alignment_plugin_check($format, $plugin_name) {
  return !empty($format->filters['filter_image_align']->status);
}