You are here

public function Views_Merge_RowsDisplayExtenderPlugin::defineOptionsAlter in Views Merge Rows 8

Provide a list of options for this plugin.

Overrides DisplayExtenderPluginBase::defineOptionsAlter

File

src/Plugin/views/display_extender/views_merge_rowsDisplayExtenderPlugin.php, line 27
Contains the class to extend views display with rows merge functionality.

Class

Views_Merge_RowsDisplayExtenderPlugin
Plugin annotation @ViewsDisplayExtender( id = "views_merge_rows", title = @Translation("Merge rows"), help = @Translation("Merges rows with the same values in the specified fields."), no_ui = FALSE )

Namespace

Drupal\views_merge_rows\Plugin\views\display_extender

Code

public function defineOptionsAlter(&$options) {
  $options['merge_rows'] = [
    'default' => FALSE,
    'bool' => TRUE,
  ];
  $options['use_grouping'] = [
    'default' => FALSE,
    'bool' => TRUE,
  ];
  $options['field_config'] = [
    'default' => [],
  ];
}