You are here

protected function HtmlList::defineOptions in Views (for Drupal 7) 8.3

Set default options

Overrides StylePluginBase::defineOptions

File

lib/Drupal/views/Plugin/views/style/HtmlList.php, line 45
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\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['type'] = array(
    'default' => 'ul',
  );
  $options['class'] = array(
    'default' => '',
  );
  $options['wrapper_class'] = array(
    'default' => 'item-list',
  );
  return $options;
}