Change record status: 
Project: 
Introduced in branch: 
10.3.x
Introduced in version: 
10.3.0
Description: 

A new workspaces.information service was added.

Whenever workspace-support needs to be checked, WorkspaceInformation::isEntitySupported() should be used, or WorkspaceInformation::isEntityTypeSupported() if an entity object is not available.

Entity types for which CRUD operations should be allowed (but not tracked) in a workspace need to use the Drupal\workspaces\Entity\Handler\IgnoredWorkspaceHandler entity handler. See the Workspace entity for example.

Deprecations

The following methods have been deprecated:

  • WorkspaceManager::isEntityTypeSupported()
  • replaced by WorkspaceInformation::isEntityTypeSupported()

  • WorkspaceManager::getSupportedEntityTypes()
  • replaced by WorkspaceInformation::getSupportedEntityTypes()

  • WorkspaceManager::shouldAlterOperations()
  • with no replacement, the logic of that method is now an internal implementation detail of \Drupal\workspaces\EntityOperations

Impacts: 
Site builders, administrators, editors
Module developers