You are here

protected function SpreadsheetIterator::getAbsoluteRowIndex in Migrate Spreadsheet 8

Same name and namespace in other branches
  1. 2.0.x src/SpreadsheetIterator.php \Drupal\migrate_spreadsheet\SpreadsheetIterator::getAbsoluteRowIndex()

Gets the absolute row index.

Return value

int The absolute row index.

3 calls to SpreadsheetIterator::getAbsoluteRowIndex()
SpreadsheetIterator::current in src/SpreadsheetIterator.php
SpreadsheetIterator::key in src/SpreadsheetIterator.php
SpreadsheetIterator::valid in src/SpreadsheetIterator.php

File

src/SpreadsheetIterator.php, line 311

Class

SpreadsheetIterator
Provides a spreadsheet iterator.

Namespace

Drupal\migrate_spreadsheet

Code

protected function getAbsoluteRowIndex() {
  if (!isset($this->absoluteRow)) {
    $row = Coordinate::coordinateFromString($this
      ->getOrigin())[1];
    $this->absoluteRow = $row + $this->relativeRow;
  }
  return $this->absoluteRow;
}