Determine the valid categories for a layer.