You are here

public function ListPlugin::buildConfigurationForm in Drupal 10

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;
}