You are here

public function WorkspaceManager::addNegotiator in Multiversion 8

Parameters

\Drupal\multiversion\Workspace\WorkspaceNegotiatorInterface $negotiator:

int $priority:

Overrides WorkspaceManagerInterface::addNegotiator

File

src/Workspace/WorkspaceManager.php, line 67

Class

WorkspaceManager

Namespace

Drupal\multiversion\Workspace

Code

public function addNegotiator(WorkspaceNegotiatorInterface $negotiator, $priority) {
  $this->negotiators[$priority][] = $negotiator;
  $this->sortedNegotiators = NULL;
}