function ListPlugin::buildConfigurationForm

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

File

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

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['reversed'],
    ];
    $form['startIndex'] = [
        '#type' => 'checkbox',
        '#title' => $this->t('Allow the user to specify the start index of an ordered list'),
        '#default_value' => $this->configuration['startIndex'],
    ];
    return $form;
}

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