You are here

public function WorkspaceDeployForm::__construct in Drupal 8

Constructs a new WorkspaceDeployForm.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

\Drupal\workspaces\WorkspaceOperationFactory $workspace_operation_factory: The workspace operation factory service.

Overrides ContentEntityForm::__construct

File

core/modules/workspaces/src/Form/WorkspaceDeployForm.php, line 55

Class

WorkspaceDeployForm
Provides the workspace deploy form.

Namespace

Drupal\workspaces\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, MessengerInterface $messenger, WorkspaceOperationFactory $workspace_operation_factory) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->messenger = $messenger;
  $this->workspaceOperationFactory = $workspace_operation_factory;
}