public function getFieldByCode($code)
    {
        foreach ($this->_fields as $field) {
            if ($field instanceof FieldInterface) {
                if ($field->getCode() == $code) {
                    return $field;
                }
            }
        }

        return null;
    }
public function getFieldByCode($code)
    {
        foreach ($this->_fields as $field) {
            if ($field instanceof FieldInterface) {
                if ($field->getCode() == $code) {
                    return $field;
                }
            }
        }

        return null;
    }
public function getFieldByCode ( $ code ) { foreach ( $ this -> _fields as $ field ) { if ( $ field instanceof FieldInterface ) { if ( $ field -> getCode ( ) == $ code ) { return $ field ; } } } return null ; }
Get a specific field by field code

@param string $code
@return \Gems\Tracker\Field\FieldInterface
Get a specific field by field code