You are here

protected function CiviCrmApi::initialize in CiviCRM Entity 8.3

Ensures that CiviCRM is loaded and API function available.

9 calls to CiviCrmApi::initialize()
CiviCrmApi::delete in src/CiviCrmApi.php
Delete an entity in CiviCRM.
CiviCrmApi::get in src/CiviCrmApi.php
Get an entity from CiviCRM.
CiviCrmApi::getCount in src/CiviCrmApi.php
Get the count of entries for an entity.
CiviCrmApi::getFields in src/CiviCrmApi.php
Get fields from the CiviCRM entity.
CiviCrmApi::getOptions in src/CiviCrmApi.php
Get options for the CiviCRM entity field.

... See full list

File

src/CiviCrmApi.php, line 169

Class

CiviCrmApi
CiviCRM API implementation.

Namespace

Drupal\civicrm_entity

Code

protected function initialize() {
  if (!function_exists('civicrm_api3')) {
    $this->civicrm
      ->initialize();
  }
}