Model/Adminhtml/Source/Rules/Value.php
public function getValueElementType($attribute)
    {
        switch ($attribute) {
            case 'method':
            case 'shipping_method':
            case 'country_id':
            case 'region_id':
            case 'customer_group_id':
                return 'select';
            default:
                $attribute
                    = $this->configFactory->getAttribute(
                        'catalog_product',
                        $attribute
                    );
                if ($attribute->usesSource()) {
                    return 'select';
                }
        }

        return 'text';
    }
public function getValueElementType($attribute)
    {
        switch ($attribute) {
            case 'method':
            case 'shipping_method':
            case 'country_id':
            case 'region_id':
            case 'customer_group_id':
                return 'select';
            default:
                $attribute
                    = $this->configFactory->getAttribute(
                        'catalog_product',
                        $attribute
                    );
                if ($attribute->usesSource()) {
                    return 'select';
                }
        }

        return 'text';
    }
public function getValueElementType ( $ attribute ) { switch ( $ attribute ) { case 'method' : case 'shipping_method' : case 'country_id' : case 'region_id' : case 'customer_group_id' : return 'select' ; default : $ attribute = $ this -> configFactory -> getAttribute ( 'catalog_product' , $ attribute ) ; if ( $ attribute -> usesSource ( ) ) { return 'select' ; } } return 'text' ; }
Get element type.

@param string $attribute

@return string
Get element type .