function WorkspaceActivateForm::__construct
Same name and namespace in other branches
- 9 core/modules/workspaces/src/Form/WorkspaceActivateForm.php \Drupal\workspaces\Form\WorkspaceActivateForm::__construct()
- 8.9.x core/modules/workspaces/src/Form/WorkspaceActivateForm.php \Drupal\workspaces\Form\WorkspaceActivateForm::__construct()
- 10 core/modules/workspaces/src/Form/WorkspaceActivateForm.php \Drupal\workspaces\Form\WorkspaceActivateForm::__construct()
Constructs a new WorkspaceActivateForm.
Parameters
\Drupal\workspaces\WorkspaceManagerInterface $workspace_manager: The workspace manager.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
File
-
core/
modules/ workspaces/ src/ Form/ WorkspaceActivateForm.php, line 49
Class
- WorkspaceActivateForm
- Handle activation of a workspace on administrative pages.
Namespace
Drupal\workspaces\FormCode
public function __construct(WorkspaceManagerInterface $workspace_manager, MessengerInterface $messenger) {
$this->workspaceManager = $workspace_manager;
$this->messenger = $messenger;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.