function UnformattedSummary::buildOptionsForm
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/style/UnformattedSummary.php \Drupal\views\Plugin\views\style\UnformattedSummary::buildOptionsForm()
- 10 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 29
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.