Migrations\View\Helper\MigrationHelper::indexMethod PHP Method

indexMethod() public method

Returns the method to be used for the index manipulation
public indexMethod ( string $action ) : string
$action string Name of action to take against the table
return string
    public function indexMethod($action)
    {
        if ($action === 'drop_field') {
            return 'removeIndex';
        }
        return 'addIndex';
    }