public function HtmlList::buildOptionsForm in Views (for Drupal 7) 8.3
Render the given style.
Overrides StylePluginBase::buildOptionsForm
File
- lib/
Drupal/ views/ Plugin/ views/ style/ HtmlList.php, line 58 - Definition of Drupal\views\Plugin\views\style\List.
Class
- HtmlList
- Style plugin to render each item in an ordered or unordered list.
Namespace
Drupal\views\Plugin\views\styleCode
public function buildOptionsForm(&$form, &$form_state) {
parent::buildOptionsForm($form, $form_state);
$form['type'] = array(
'#type' => 'radios',
'#title' => t('List type'),
'#options' => array(
'ul' => t('Unordered list'),
'ol' => t('Ordered list'),
),
'#default_value' => $this->options['type'],
);
$form['wrapper_class'] = array(
'#title' => t('Wrapper class'),
'#description' => t('The class to provide on the wrapper, outside the list.'),
'#type' => 'textfield',
'#size' => '30',
'#default_value' => $this->options['wrapper_class'],
);
$form['class'] = array(
'#title' => t('List class'),
'#description' => t('The class to provide on the list element itself.'),
'#type' => 'textfield',
'#size' => '30',
'#default_value' => $this->options['class'],
);
}