function ListPlugin::buildConfigurationForm

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

File

core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/ListPlugin.php, line 37

Class

ListPlugin
CKEditor 5 List plugin.

Namespace

Drupal\ckeditor5\Plugin\CKEditor5Plugin

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
    $form['reversed'] = [
        '#type' => 'checkbox',
        '#title' => $this->t('Allow the user to reverse an ordered list'),
        '#default_value' => $this->configuration['properties']['reversed'],
    ];
    $form['startIndex'] = [
        '#type' => 'checkbox',
        '#title' => $this->t('Allow the user to specify the start index of an ordered list'),
        '#default_value' => $this->configuration['properties']['startIndex'],
    ];
    $form['multiBlock'] = [
        '#type' => 'checkbox',
        '#title' => $this->t('Allow the user to create paragraphs in list items (or other block elements)'),
        '#default_value' => $this->configuration['multiBlock'],
    ];
    return $form;
}

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