FALSE]; $options['separator'] = ['default' => '']; return $options; } public function buildOptionsForm(&$form, FormStateInterface $form_state) { parent::buildOptionsForm($form, $form_state); $form['inline'] = [ '#type' => 'checkbox', '#default_value' => !empty($this->options['inline']), '#title' => $this->t('Display items inline'), ]; $form['separator'] = [ '#type' => 'textfield', '#title' => $this->t('Separator'), '#default_value' => $this->options['separator'], ]; } }