function ImageResize::buildConfigurationForm

Same name in other branches
  1. 9 core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/ImageResize.php \Drupal\ckeditor5\Plugin\CKEditor5Plugin\ImageResize::buildConfigurationForm()
  2. 10 core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/ImageResize.php \Drupal\ckeditor5\Plugin\CKEditor5Plugin\ImageResize::buildConfigurationForm()

File

core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/ImageResize.php, line 32

Class

ImageResize
CKEditor 5 ImageResize plugin.

Namespace

Drupal\ckeditor5\Plugin\CKEditor5Plugin

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
    $form['allow_resize'] = [
        '#type' => 'checkbox',
        '#title' => $this->t('Allow the user to resize images'),
        '#default_value' => $this->configuration['allow_resize'],
    ];
    return $form;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.