You are here

protected function Tree::defineOptions in Views tree 8.2

Set default options

Overrides HtmlList::defineOptions

1 call to Tree::defineOptions()
TreeERSelection::defineOptions in src/Plugin/views/style/TreeERSelection.php
Set default options
1 method overrides Tree::defineOptions()
TreeERSelection::defineOptions in src/Plugin/views/style/TreeERSelection.php
Set default options

File

src/Plugin/views/style/Tree.php, line 44

Class

Tree
Style plugin to render each item as hierarchy.

Namespace

Drupal\views_tree\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $this
    ->defineCommonOptions($options);
  $options['class'] = [
    'default' => '',
  ];
  $options['wrapper_class'] = [
    'default' => 'item-list',
  ];
  $options['collapsible_tree'] = [
    'default' => 0,
  ];
  return $options;
}