protected function SpreadsheetIterator::getAbsoluteRowIndex in Migrate Spreadsheet 2.0.x
Same name and namespace in other branches
- 8 src/SpreadsheetIterator.php \Drupal\migrate_spreadsheet\SpreadsheetIterator::getAbsoluteRowIndex()
Gets the absolute row index.
Return value
int The absolute row index.
Throws
\PhpOffice\PhpSpreadsheet\Exception On wrong coordinate string.
3 calls to SpreadsheetIterator::getAbsoluteRowIndex()
File
- src/
SpreadsheetIterator.php, line 316
Class
- SpreadsheetIterator
- Provides a spreadsheet iterator.
Namespace
Drupal\migrate_spreadsheetCode
protected function getAbsoluteRowIndex() : int {
if (!isset($this->absoluteRow)) {
$row = (int) Coordinate::coordinateFromString($this
->getOrigin())[1];
$this->absoluteRow = $row + $this->relativeRow;
}
return $this->absoluteRow;
}