APIv4 - Refactor Entity.get and deprecate the includeCustom param
authorColeman Watts <coleman@civicrm.org>
Wed, 2 Jun 2021 00:23:16 +0000 (20:23 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 2 Jun 2021 12:08:27 +0000 (08:08 -0400)
commit7430e70d60cba8f3cb4bd6e5880506ab9361c4f0
tree8000904e6cbc025243093e8b5fa7cd311b24acd2
parent1ae37b532b7c5227b2ca432758f26ad2aaf68fda
APIv4 - Refactor Entity.get and deprecate the includeCustom param

This makes Entity.get more efficient - it no longer does a file scan when getting one or more entities by name.
Also deprecates the includeCustom param which was redundant with the where clause.
This is the first APIv4 param to be deprecated - added handling to emit a warning when using a deprecated param
and hide deprecated params in the APIv4 explorer.
Civi/Api4/Action/Entity/Get.php
Civi/Api4/Entity.php
Civi/Api4/Event/Subscriber/ValidateFieldsSubscriber.php
ang/api4Explorer/Explorer.js