You are here

protected function Section::defineOptions in Workbench Access 8

Same name in this branch
  1. 8 src/Plugin/views/filter/Section.php \Drupal\workbench_access\Plugin\views\filter\Section::defineOptions()
  2. 8 src/Plugin/views/field/Section.php \Drupal\workbench_access\Plugin\views\field\Section::defineOptions()

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides PrerenderList::defineOptions

File

src/Plugin/views/field/Section.php, line 67

Class

Section
Field handler to present the section assigned to the node.

Namespace

Drupal\workbench_access\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['make_link'] = [
    'default' => FALSE,
  ];
  return $options;
}