You are here

public function ContentHubSubscription::__construct in Acquia Content Hub 8

Constructs an ContentEntityNormalizer object.

Parameters

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\acquia_contenthub\Client\ClientManagerInterface $client_manager: The client manager.

\Drupal\Core\State\StateInterface $state: The state class.

File

src/ContentHubSubscription.php, line 87

Class

ContentHubSubscription
Handles operations on the Acquia Content Hub Subscription.

Namespace

Drupal\acquia_contenthub

Code

public function __construct(LoggerChannelFactoryInterface $logger_factory, ConfigFactoryInterface $config_factory, ClientManagerInterface $client_manager, StateInterface $state) {
  $this->loggerFactory = $logger_factory;
  $this->configFactory = $config_factory;
  $this->clientManager = $client_manager;

  // Get the content hub config settings.
  $this->config = $this->configFactory
    ->getEditable('acquia_contenthub.admin_settings');
  $this->state = $state;
}