Get all dropdown options for a given entity field.
Arguments:
entity
the entity where the field is located
field_name
name of the field in the entity
view_names
a list of names which define what the view field may contain. This allows the first
field that has a name in the list of names will be returned as the view field.
Get the name of the field which first matches the possible colums
Arguments:
entity
the entity where the field is located
possible_names
a list of names which define what the view field may contain. This allows the first
field that has a name in the list of names will be returned as the view field.