You are here

protected function ExcelExport::defineOptions in Excel Serialization 8

Same name in this branch
  1. 8 src/Plugin/views/display/ExcelExport.php \Drupal\xls_serialization\Plugin\views\display\ExcelExport::defineOptions()
  2. 8 src/Plugin/views/style/ExcelExport.php \Drupal\xls_serialization\Plugin\views\style\ExcelExport::defineOptions()

Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase:defineOptions().

Overrides RestExport::defineOptions

File

src/Plugin/views/display/ExcelExport.php, line 91

Class

ExcelExport
Provides an Excel export display plugin.

Namespace

Drupal\xls_serialization\Plugin\views\display

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['displays'] = [
    'default' => [],
  ];

  // Set the default style plugin, and default to fields.
  $options['style']['contains']['type']['default'] = 'excel_export';
  $options['row']['contains']['type']['default'] = 'data_field';
  return $options;
}