You are here

public function ContentEntityHandler::__construct in Acquia Content Hub 8.2

ContentEntity constructor.

Parameters

\Drupal\depcalc\DependencyCalculator $calculator: The dependency calculator.

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

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher.

\Drupal\acquia_contenthub\Client\ClientFactory $factory: The client factory.

File

src/EventSubscriber/Cdf/ContentEntityHandler.php, line 77

Class

ContentEntityHandler
The Content entity CDF creator.

Namespace

Drupal\acquia_contenthub\EventSubscriber\Cdf

Code

public function __construct(DependencyCalculator $calculator, ConfigFactoryInterface $config_factory, EventDispatcherInterface $dispatcher, ClientFactory $factory) {
  $this->calculator = $calculator;
  $this->configFactory = $config_factory;
  $this->dispatcher = $dispatcher;
  $this->clientFactory = $factory;
  $this->languageManager = \Drupal::languageManager();
}