function UnformattedSummary::buildOptionsForm
Same name in other branches
- 9 core/modules/views/src/Plugin/views/style/UnformattedSummary.php \Drupal\views\Plugin\views\style\UnformattedSummary::buildOptionsForm()
- 8.9.x core/modules/views/src/Plugin/views/style/UnformattedSummary.php \Drupal\views\Plugin\views\style\UnformattedSummary::buildOptionsForm()
- 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 30
Class
- UnformattedSummary
- The default style plugin for summaries.
Namespace
Drupal\views\Plugin\views\styleCode
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.