_itemsToGet('name'); /** @var \Civi\Api4\Service\Spec\SpecGatherer $gatherer */ $gatherer = \Civi::container()->get('spec_gatherer'); $spec = $gatherer->getSpec('Custom_' . $this->getCustomGroup(), $this->getAction(), $this->includeCustom, $this->values); return SpecFormatter::specToArray($spec->getFields($fields), $this->loadOptions); } /** * @inheritDoc */ public function getParamInfo($param = NULL) { $info = parent::getParamInfo($param); if (!$param) { // This param is meaningless here. unset($info['includeCustom']); } return $info; } }