3 namespace Civi\Api4\Action\GroupContact
;
8 * @method $this setMethod(string $method) Indicate who added/removed the group.
9 * @method string getMethod()
10 * @method $this setTracking(string $tracking) Specify ip address or other tracking info.
11 * @method string getTracking()
13 trait GroupContactSaveTrait
{
16 * String to indicate who added/removed the group.
20 protected $method = 'API';
23 * IP address or other tracking info about who performed this group subscription.
27 protected $tracking = '';
32 protected function writeObjects($items) {
33 foreach ($items as &$item) {
34 $item['method'] = $this->method
;
35 $item['tracking'] = $this->tracking
;
37 return parent
::writeObjects($items);