You are here

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

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

Retrieves a full list of headers.

Return value

string[] An associative array having the header name as key and header column index as value. If there is no header row defined, the key is the same as the value. The column index has a letter representation (A, B, C, ...).

Throws

\RuntimeException If a header cell is duplicated.

1 method overrides SpreadsheetIteratorInterface::getHeaders()
SpreadsheetIterator::getHeaders in src/SpreadsheetIterator.php
Retrieves a full list of headers.

File

src/SpreadsheetIteratorInterface.php, line 119

Class

SpreadsheetIteratorInterface
Provides an interface for spreadsheet iterators.

Namespace

Drupal\migrate_spreadsheet

Code

public function getHeaders() : array;