You are here

public function SpreadsheetIteratorInterface::getKeys in Migrate Spreadsheet 2.0.x

Same name and namespace in other branches
  1. 8 src/SpreadsheetIteratorInterface.php \Drupal\migrate_spreadsheet\SpreadsheetIteratorInterface::getKeys()

Gets the list of columns that are composing the primary key.

Return value

string[] A list of column names.

Throws

\InvalidArgumentException If a key passed in 'keys' does not exist in the header.

1 method overrides SpreadsheetIteratorInterface::getKeys()
SpreadsheetIterator::getKeys in src/SpreadsheetIterator.php
Gets the list of columns that are composing the primary key.

File

src/SpreadsheetIteratorInterface.php, line 90

Class

SpreadsheetIteratorInterface
Provides an interface for spreadsheet iterators.

Namespace

Drupal\migrate_spreadsheet

Code

public function getKeys() : array;