function WorkspacesLayoutTempstoreRepository::setWorkspacesManager

Same name and namespace in other branches
  1. 11.x core/modules/workspaces/src/WorkspacesLayoutTempstoreRepository.php \Drupal\workspaces\WorkspacesLayoutTempstoreRepository::setWorkspacesManager()

Sets the workspace manager.

Parameters

\Drupal\workspaces\WorkspaceManagerInterface $workspace_manager: The workspace manager service.

File

core/modules/workspaces/src/WorkspacesLayoutTempstoreRepository.php, line 26

Class

WorkspacesLayoutTempstoreRepository
Provides a mechanism for loading workspace-specific layout changes.

Namespace

Drupal\workspaces

Code

public function setWorkspacesManager(WorkspaceManagerInterface $workspace_manager) : static {
  $this->workspaceManager = $workspace_manager;
  return $this;
}

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