You are here

public function Spreadsheet::defaultConfiguration in Migrate Spreadsheet 2.0.x

Same name and namespace in other branches
  1. 8 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 ConfigurableInterface::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 94

Class

Spreadsheet
Provides a source plugin that migrate from spreadsheet files.

Namespace

Drupal\migrate_spreadsheet\Plugin\migrate\source

Code

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