EDIT publish flag getter method and format code