public function DrupalImage::settingsForm in Drupal 9
Same name and namespace in other branches
- 8 core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalImage::settingsForm()
Overrides CKEditorPluginConfigurableInterface::settingsForm
See also
\Drupal\editor\Form\EditorImageDialog
editor_image_upload_settings_form()
File
- core/
modules/ ckeditor/ src/ Plugin/ CKEditorPlugin/ DrupalImage.php, line 65
Class
- DrupalImage
- Defines the "drupalimage" plugin.
Namespace
Drupal\ckeditor\Plugin\CKEditorPluginCode
public function settingsForm(array $form, FormStateInterface $form_state, Editor $editor) {
$form_state
->loadInclude('editor', 'admin.inc');
$form['image_upload'] = editor_image_upload_settings_form($editor);
$form['image_upload']['#attached']['library'][] = 'ckeditor/drupal.ckeditor.drupalimage.admin';
$form['image_upload']['#element_validate'][] = [
$this,
'validateImageUploadSettings',
];
return $form;
}