public function getClient() {
    $clientKey = $this->configFactory->get('openy_campaign.settings')->get('client');

    $client = $this->container->get($clientKey);

    if (!in_array('Drupal\openy_campaign\CRMClientInterface', class_implements(get_class($client)))) {
      throw new LogicException('CRM Client does not implement CRMClientInterface.');
    }

    return $client;

  }
public function getClient() {
    $clientKey = $this->configFactory->get('openy_campaign.settings')->get('client');

    $client = $this->container->get($clientKey);

    if (!in_array('Drupal\openy_campaign\CRMClientInterface', class_implements(get_class($client)))) {
      throw new LogicException('CRM Client does not implement CRMClientInterface.');
    }

    return $client;

  }
public function getClient ( ) { $ clientKey = $ this -> configFactory -> get ( 'openy_campaign.settings' ) -> get ( 'client' ) ; $ client = $ this -> container -> get ( $ clientKey ) ; if ( ! in_array ( 'Drupal\openy_campaign\CRMClientInterface' , class_implements ( get_class ( $ client ) ) ) ) { throw new LogicException ( 'CRM Client does not implement CRMClientInterface.' ) ; } return $ client ; }
Get CRM client from the configuration.
Get CRM client from the configuration .