public function WorkspaceReplication::__construct in Workspace 8
Constructs a \Drupal\Component\Plugin\PluginBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides PluginBase::__construct
File
- src/
Plugin/ QueueWorker/ WorkspaceReplication.php, line 131
Class
- WorkspaceReplication
- Class WorkspaceReplication.
Namespace
Drupal\workspace\Plugin\QueueWorkerCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ReplicatorManager $replicator_manager, Time $time, AccountSwitcherInterface $account_switcher, StateInterface $state, LoggerChannelFactoryInterface $logger, EntityTypeManagerInterface $entity_type_manager, WorkspaceManagerInterface $workspace_manager, $workspace_default, EventDispatcherInterface $event_dispatcher, ConfigFactoryInterface $config_factory) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->replicatorManager = $replicator_manager;
$this->time = $time;
$this->accountSwitcher = $account_switcher;
$this->state = $state;
$this->logger = $logger
->get('workspace');
$this->entityTypeManager = $entity_type_manager;
$this->workspaceManager = $workspace_manager;
$this->workspaceDefault = $workspace_default;
$this->eventDispatcher = $event_dispatcher;
$this->replicationConfig = $config_factory
->get('replication.settings');
}