source/Core/DbMetaDataHandler.php
public function getIndexByName($indexName, $tableName)
    {
        $indices = $this->getIndices($tableName);

        $result = null;

        foreach ($indices as $index) {
            if ($indexName === $index['Column_name']) {
                $result = $index;
            }
        }

        return $result;
    }
public function getIndexByName($indexName, $tableName)
    {
        $indices = $this->getIndices($tableName);

        $result = null;

        foreach ($indices as $index) {
            if ($indexName === $index['Column_name']) {
                $result = $index;
            }
        }

        return $result;
    }
public function getIndexByName ( $ indexName , $ tableName ) { $ indices = $ this -> getIndices ( $ tableName ) ; $ result = null ; foreach ( $ indices as $ index ) { if ( $ indexName === $ index [ 'Column_name' ] ) { $ result = $ index ; } } return $ result ; }
Get the index of a given table by its name

@param string $indexName The name of the index
@param string $tableName The name of the table from which we want the index

@return null|array The index with the given name
Get the index of a given table by its name