function WorkspaceManager::addNegotiator
Adds a workspace negotiator service.
@todo Remove in drupal:12.0.0.
@internal
Parameters
\Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface $negotiator: The negotiator to be added.
File
-
core/
modules/ workspaces/ src/ WorkspaceManager.php, line 294
Class
- WorkspaceManager
- Provides the workspace manager.
Namespace
Drupal\workspacesCode
public function addNegotiator(WorkspaceNegotiatorInterface $negotiator) : void {
$this->collectedNegotiators[] = $negotiator;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.