public function getFilterField(AttributeInterface $attribute)
    {
        $field = $attribute->getAttributeCode();

        if ($attribute->usesSource()) {
            $field = $this->getOptionTextFieldName($field);
        }

        return $field;
    }
public function getFilterField(AttributeInterface $attribute)
    {
        $field = $attribute->getAttributeCode();

        if ($attribute->usesSource()) {
            $field = $this->getOptionTextFieldName($field);
        }

        return $field;
    }
public function getFilterField ( AttributeInterface $ attribute ) { $ field = $ attribute -> getAttributeCode ( ) ; if ( $ attribute -> usesSource ( ) ) { $ field = $ this -> getOptionTextFieldName ( $ field ) ; } return $ field ; }
Returns field use for filtering for an attribute.

@param AttributeInterface $attribute Attribute.

@return string
Returns field use for filtering for an attribute .