You are here

public function UnformattedSummary::buildOptionsForm in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/style/UnformattedSummary.php \Drupal\views\Plugin\views\style\UnformattedSummary::buildOptionsForm()

Provide a form to edit options for this plugin.

Overrides DefaultSummary::buildOptionsForm

File

core/modules/views/src/Plugin/views/style/UnformattedSummary.php, line 29

Class

UnformattedSummary
The default style plugin for summaries.

Namespace

Drupal\views\Plugin\views\style

Code

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'],
  ];
}