SavedSearch - Add pseudoconstant for api_entity field
authorColeman Watts <coleman@civicrm.org>
Sun, 29 Aug 2021 23:58:17 +0000 (19:58 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 29 Aug 2021 23:58:17 +0000 (19:58 -0400)
commitddc4b6b8710bf4214ccf9428067c5bfd52e95ff4
tree6612efe2962e51022f9e84362ca3079088daf6f1
parent4ef7dabbba4c9a7f380ef47e90fd9538aeb8de74
SavedSearch - Add pseudoconstant for api_entity field

This makes it easier to display in the UI what a search is for,
e.g. `->addSelect('api_entity:label')` would return "Contacts" for a search of Contacts.
CRM/Contact/BAO/SavedSearch.php
CRM/Contact/DAO/SavedSearch.php
xml/schema/Contact/SavedSearch.xml