private function isColumnInIndex(TableInterface $table, ColumnInterface $column){
        $indexes = $table->getAddedIndexes();

        if(in_array($column->getName(), $table->getPrimaryKey())){
            return true;
        }

        foreach($indexes as $columnNames){
            if(in_array($column->getName(), $columnNames)){
                return true;
            }
        }

        return false;
    }
private function isColumnInIndex(TableInterface $table, ColumnInterface $column){
        $indexes = $table->getAddedIndexes();

        if(in_array($column->getName(), $table->getPrimaryKey())){
            return true;
        }

        foreach($indexes as $columnNames){
            if(in_array($column->getName(), $columnNames)){
                return true;
            }
        }

        return false;
    }
private function isColumnInIndex ( TableInterface $ table , ColumnInterface $ column ) { $ indexes = $ table -> getAddedIndexes ( ) ; if ( in_array ( $ column -> getName ( ) , $ table -> getPrimaryKey ( ) ) ) { return true ; } foreach ( $ indexes as $ columnNames ) { if ( in_array ( $ column -> getName ( ) , $ columnNames ) ) { return true ; } } return false ; }
Check if a column is marked as index

@param TableInterface $table
@param ColumnInterface $column
@return bool
Check if a column is marked as index