src/Walker.php
public function getIndex($ignoreInfinite = false)
    {
        if ($this->infinite && !$ignoreInfinite) {
            return $this->infiniteIndex;
        }

        return $this->index;
    }
public function getIndex($ignoreInfinite = false)
    {
        if ($this->infinite && !$ignoreInfinite) {
            return $this->infiniteIndex;
        }

        return $this->index;
    }
Get index.

@param bool $ignoreInfinite If true the infinite index is ignored and the regular column index is returned.

@return int