public function DrupalImage::settingsForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 70 - Contains \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalImage.
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'][] = array(
$this,
'validateImageUploadSettings',
);
return $form;
}