You are here

public function ReplicateContent::__construct in Workspace 8

Constructs a new ReplicateContent.

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.

\Drupal\multiversion\Workspace\WorkspaceManagerInterface $workspace_manager:

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:

\Drupal\workspace\ReplicatorManager $replicator_manager:

\Drupal\multiversion\MultiversionManagerInterface $multiversion_manager:

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/RulesAction/ReplicateContent.php, line 59

Class

ReplicateContent
Provides a 'Save entity' action.

Namespace

Drupal\workspace\Plugin\RulesAction

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, WorkspaceManagerInterface $workspace_manager, EntityTypeManagerInterface $entity_type_manager, ReplicatorManager $replicator_manager, MultiversionManagerInterface $multiversion_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->workspaceManager = $workspace_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->replicatorManager = $replicator_manager;
  $this->multiversionManager = $multiversion_manager;
}