public function UnformattedSummary::buildOptionsForm

Provide a form to edit options for this plugin.

Overrides DefaultSummary::buildOptionsForm

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/style/UnformattedSummary.php, line 35
Definition of Drupal\views\Plugin\views\style\UnformattedSummary.

Class

UnformattedSummary
The default style plugin for summaries.

Namespace

Drupal\views\Plugin\views\style

Code

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