function WorkspacePublishForm::__construct

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/Form/WorkspacePublishForm.php \Drupal\workspaces\Form\WorkspacePublishForm::__construct()
  2. 10 core/modules/workspaces/src/Form/WorkspacePublishForm.php \Drupal\workspaces\Form\WorkspacePublishForm::__construct()

Constructs a new WorkspacePublishForm.

Parameters

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

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

File

core/modules/workspaces/src/Form/WorkspacePublishForm.php, line 50

Class

WorkspacePublishForm
Provides the workspace publishing form.

Namespace

Drupal\workspaces\Form

Code

public function __construct(WorkspaceOperationFactory $workspace_operation_factory, EntityTypeManagerInterface $entity_type_manager) {
    $this->workspaceOperationFactory = $workspace_operation_factory;
    $this->entityTypeManager = $entity_type_manager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.