You are here

public function CiviCrmApi::get in CiviCRM Entity 8.3

Get an entity from CiviCRM.

Parameters

string $entity: The entity name.

array $params: Optional additional parameters.

Return value

array The entity data.

Overrides CiviCrmApiInterface::get

1 call to CiviCrmApi::get()
CiviCrmApi::getCustomFieldMetadata in src/CiviCrmApi.php
Retrieve custom field metadata for a field.

File

src/CiviCrmApi.php, line 32

Class

CiviCrmApi
CiviCRM API implementation.

Namespace

Drupal\civicrm_entity

Code

public function get($entity, array $params = []) {
  $this
    ->initialize();
  $result = civicrm_api3($entity, 'get', $params);
  return $result['values'];
}