You are here

private function CiviEntityStorage::getConfigFactory in CiviCRM Entity 8.3

Gets the config factory.

Return value

\Drupal\Core\Config\ConfigFactoryInterface The configuration factory service.

File

src/CiviEntityStorage.php, line 58

Class

CiviEntityStorage
Defines entity class for external CiviCRM entities.

Namespace

Drupal\civicrm_entity

Code

private function getConfigFactory() {
  if (!$this->configFactory) {
    $this->configFactory = \Drupal::configFactory();
  }
  return $this->configFactory;
}