You are here

public function Spreadsheet::defaultConfiguration in Migrate Spreadsheet 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/migrate/source/Spreadsheet.php \Drupal\migrate_spreadsheet\Plugin\migrate\source\Spreadsheet::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurablePluginInterface::defaultConfiguration

1 call to Spreadsheet::defaultConfiguration()
Spreadsheet::setConfiguration in src/Plugin/migrate/source/Spreadsheet.php
Sets the configuration for this plugin instance.

File

src/Plugin/migrate/source/Spreadsheet.php, line 90

Class

Spreadsheet
Provides a source plugin that migrate from spreadsheet files.

Namespace

Drupal\migrate_spreadsheet\Plugin\migrate\source

Code

public function defaultConfiguration() {
  return [
    'file' => NULL,
    'worksheet' => NULL,
    'origin' => 'A2',
    'header_row' => NULL,
    'columns' => [],
    'keys' => [],
    'row_index_column' => NULL,
  ];
}