mglaman / drupal-change-record-triage

Used to triage Drupal change records to ensure phpstan-drupal, drupal-rector, and upgrade_status have appropriate issues.
MIT License
6 stars 0 forks source link

WorkspaceNegotiatorInterface::getActiveWorkspace() has been deprecated #786

Open github-actions[bot] opened 6 days ago

github-actions[bot] commented 6 days ago

https://www.drupal.org/node/3443765

Introduced in branch/version: 10.3.x / 10.3.0

\Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface::getActiveWorkspace() has been deprecated and will be removed in Drupal 11.

Workspace negotiators need to implement a new method in order to negotiate an active workspace: \Drupal\workspaces\Negotiator\WorkspaceIdNegotiatorInterface::getActiveWorkspaceId().

The difference between the old and new negotiation methods is that the new method must not load the workspace entity to ensure that it exists, the responsibility for checking that has been moved to \Drupal\workspaces\WorkspaceManager::getActiveWorkspace().

bbrala commented 5 days ago

Not much usage: https://git.drupalcode.org/search?group_id=2&scope=blobs&search=-path%3Acore+-path%3Avendor+-path%3Adocroot+-path%3Aweb+-path%3Aprofiles+-path%3Asites+%22function+getActiveWorkspace%22