You are here

protected function ViewsMergeRowsDisplayExtenderPlugin::defineOptions in Views Merge Rows 8.2

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 PluginBase::defineOptions

File

src/Plugin/views/display_extender/ViewsMergeRowsDisplayExtenderPlugin.php, line 27

Class

ViewsMergeRowsDisplayExtenderPlugin
Provides interface to manage merge options on a per-field basis.

Namespace

Drupal\views_merge_rows\Plugin\views\display_extender

Code

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