src/Charcoal/Ui/Layout/LayoutTrait.php
public function rowIndex($position = null)
    {
        if ($position === null) {
            $position = $this->position();
        }

        $i = 0;
        $p = 0;
        foreach ($this->structure as $row_ident => $row) {
            $numCells = count($row['columns']);
            $p += $numCells;
            if ($p > $position) {
                return $i;
            }
            $i++;
        }
        return null;
    }
public function rowIndex($position = null)
    {
        if ($position === null) {
            $position = $this->position();
        }

        $i = 0;
        $p = 0;
        foreach ($this->structure as $row_ident => $row) {
            $numCells = count($row['columns']);
            $p += $numCells;
            if ($p > $position) {
                return $i;
            }
            $i++;
        }
        return null;
    }
public function rowIndex ( $ position = null ) { if ( $ position === null ) { $ position = $ this -> position ( ) ; } $ i = 0 ; $ p = 0 ; foreach ( $ this -> structure as $ row_ident => $ row ) { $ numCells = count ( $ row [ 'columns' ] ) ; $ p += $ numCells ; if ( $ p > $ position ) { return $ i ; } $ i ++ ; } return null ; }
Get the row index at a certain position

@param integer $position Optional. Forced position.
@return integer|null
Get the row index at a certain position