function WorkspaceAssociationInterface::trackEntity

Same name in other branches
  1. 9 core/modules/workspaces/src/WorkspaceAssociationInterface.php \Drupal\workspaces\WorkspaceAssociationInterface::trackEntity()
  2. 8.9.x core/modules/workspaces/src/WorkspaceAssociationInterface.php \Drupal\workspaces\WorkspaceAssociationInterface::trackEntity()
  3. 11.x core/modules/workspaces/src/WorkspaceAssociationInterface.php \Drupal\workspaces\WorkspaceAssociationInterface::trackEntity()

Updates or creates the association for a given entity and a workspace.

Parameters

\Drupal\Core\Entity\RevisionableInterface $entity: The entity to update or create from.

\Drupal\workspaces\WorkspaceInterface $workspace: The workspace in which the entity will be tracked.

File

core/modules/workspaces/src/WorkspaceAssociationInterface.php, line 29

Class

WorkspaceAssociationInterface
Defines an interface for the workspace_association service.

Namespace

Drupal\workspaces

Code

public function trackEntity(RevisionableInterface $entity, WorkspaceInterface $workspace);

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