You are here

public function EntityCdfSerializer::__construct in Acquia Content Hub 8.2

EntityCdfSerializer constructor.

Parameters

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

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

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

\Drupal\Core\Extension\ModuleInstallerInterface $module_installer: The module installer.

\Drupal\acquia_contenthub\StubTracker $tracker: The stub tracker.

File

src/EntityCdfSerializer.php, line 91

Class

EntityCdfSerializer
Serialize an entity to a CDF format.

Namespace

Drupal\acquia_contenthub

Code

public function __construct(EventDispatcherInterface $dispatcher, ConfigFactoryInterface $config_factory, DependencyCalculator $calculator, ModuleInstallerInterface $module_installer, StubTracker $tracker) {
  $this->dispatcher = $dispatcher;
  $this->configFactory = $config_factory;
  $this->calculator = $calculator;
  $this->moduleInstaller = $module_installer;
  $this->tracker = $tracker;
}