You are here

protected function TreeStyleTrait::defineCommonOptions in Views tree 8.2

Gather common options.

2 calls to TreeStyleTrait::defineCommonOptions()
Tree::defineOptions in src/Plugin/views/style/Tree.php
Set default options
TreeTable::defineOptions in src/Plugin/views/style/TreeTable.php
Information about options for all kinds of purposes will be held here.

File

src/TreeStyleTrait.php, line 18

Class

TreeStyleTrait
Contains common code for list and table tree style displays.

Namespace

Drupal\views_tree

Code

protected function defineCommonOptions(array &$options) {
  $options['main_field'] = [
    'default' => '',
  ];
  $options['parent_field'] = [
    'default' => '',
  ];
}