getBatchAction()->execute(); } /** * Get an API action object which resolves the list of records for this batch. * * This is similar to `getBatchRecords()`, but you may further refine the * API call (e.g. selecting different fields or data-pages) before executing. * * @return \Civi\Api4\Generic\AbstractGetAction */ protected function getBatchAction() { $params = [ 'checkPermissions' => $this->checkPermissions, 'where' => $this->where, 'orderBy' => $this->orderBy, 'limit' => $this->limit, 'offset' => $this->offset, ]; if (empty($this->reload)) { $params['select'] = $this->getSelect(); } return \Civi\API\Request::create($this->getEntityName(), 'get', ['version' => 4] + $params); } /** * Determines what fields will be returned by getBatchRecords * * Defaults to an entity's primary key(s), typically ['id'] * * @return string[] */ protected function getSelect() { return CoreUtil::getInfoItem($this->getEntityName(), 'primary_key'); } }