public function CiviCrmApi::getFields in CiviCRM Entity 8.3
Get fields from the CiviCRM entity.
Parameters
string $entity: The entity name.
string $action: The action.
Return value
array The array of field information.
Overrides CiviCrmApiInterface::getFields
File
- src/
CiviCrmApi.php, line 67
Class
- CiviCrmApi
- CiviCRM API implementation.
Namespace
Drupal\civicrm_entityCode
public function getFields($entity, $action = '') {
$this
->initialize();
$result = civicrm_api3($entity, 'getfields', [
'sequential' => 1,
'action' => $action,
]);
return $result['values'];
}