Removed $view_mode condition since it's not required in panel field.