You are here

public function UpdateForm::__construct in Workspace 8

Inject services needed by the form.

Parameters

\Drupal\multiversion\Workspace\WorkspaceManagerInterface $workspace_manager: The workspace manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\workspace\ReplicatorInterface $replicator_manager: The replicator manager.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\multiversion\Workspace\ConflictTrackerInterface $conflict_tracker: The conflict tracking service.

File

src/Form/UpdateForm.php, line 74

Class

UpdateForm
The form to update the current workspace with its upstream.

Namespace

Drupal\workspace\Form

Code

public function __construct(WorkspaceManagerInterface $workspace_manager, EntityTypeManagerInterface $entity_type_manager, ReplicatorInterface $replicator_manager, RendererInterface $renderer, ConflictTrackerInterface $conflict_tracker) {
  $this->workspaceManager = $workspace_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->replicatorManager = $replicator_manager;
  $this->renderer = $renderer;
  $this->conflictTracker = $conflict_tracker;
}