public function UnformattedSummary::buildOptionsForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 34 - Contains \Drupal\views\Plugin\views\style\UnformattedSummary.
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'] = array(
'#type' => 'checkbox',
'#default_value' => !empty($this->options['inline']),
'#title' => $this
->t('Display items inline'),
);
$form['separator'] = array(
'#type' => 'textfield',
'#title' => $this
->t('Separator'),
'#default_value' => $this->options['separator'],
);
}