public function getColumnIndex($name)
    {
        if (!\is_array($this->mappingColumns)) {
            $this->mappingColumns = [];

            /* @var BlockInterface $column */
            foreach ($this->getColumns() as $i => $column) {
                $this->mappingColumns[$column->getName()] = $i;
            }
        }

        if (isset($this->mappingColumns[$name])) {
            $column = $this->columns[$this->mappingColumns[$name]];

            return $column->getOption('index');
        }

        throw new InvalidArgumentException(sprintf('The column name "%s" does not exist', $name));
    }
public function getColumnIndex($name)
    {
        if (!\is_array($this->mappingColumns)) {
            $this->mappingColumns = [];

            /* @var BlockInterface $column */
            foreach ($this->getColumns() as $i => $column) {
                $this->mappingColumns[$column->getName()] = $i;
            }
        }

        if (isset($this->mappingColumns[$name])) {
            $column = $this->columns[$this->mappingColumns[$name]];

            return $column->getOption('index');
        }

        throw new InvalidArgumentException(sprintf('The column name "%s" does not exist', $name));
    }
public function getColumnIndex ( $ name ) { if ( ! \ is_array ( $ this -> mappingColumns ) ) { $ this -> mappingColumns = [ ] ; /* @var BlockInterface $column */ foreach ( $ this -> getColumns ( ) as $ i => $ column ) { $ this -> mappingColumns [ $ column -> getName ( ) ] = $ i ; } } if ( isset ( $ this -> mappingColumns [ $ name ] ) ) { $ column = $ this -> columns [ $ this -> mappingColumns [ $ name ] ] ; return $ column -> getOption ( 'index' ) ; } throw new InvalidArgumentException ( sprintf ( 'The column name "%s" does not exist' , $ name ) ) ; }
Return the index name of column.

@param string $name

@return string The index

@throws InvalidArgumentException When column does not exit
Return the index name of column .