function UnformattedSummary::buildOptionsForm

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/style/UnformattedSummary.php \Drupal\views\Plugin\views\style\UnformattedSummary::buildOptionsForm()
  2. 10 core/modules/views/src/Plugin/views/style/UnformattedSummary.php \Drupal\views\Plugin\views\style\UnformattedSummary::buildOptionsForm()
  3. 11.x core/modules/views/src/Plugin/views/style/UnformattedSummary.php \Drupal\views\Plugin\views\style\UnformattedSummary::buildOptionsForm()

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

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