function WorkspaceTrackerInterface::trackEntity
Updates or creates the association for a given entity and a workspace.
Parameters
string $workspace_id: The workspace in which the entity will be tracked.
\Drupal\Core\Entity\RevisionableInterface $entity: The entity to update or create from.
1 method overrides WorkspaceTrackerInterface::trackEntity()
- WorkspaceTracker::trackEntity in core/
modules/ workspaces/ src/ WorkspaceTracker.php - Updates or creates the association for a given entity and a workspace.
File
-
core/
modules/ workspaces/ src/ WorkspaceTrackerInterface.php, line 29
Class
- WorkspaceTrackerInterface
- Defines an interface for the workspace tracker service.
Namespace
Drupal\workspacesCode
public function trackEntity(string $workspace_id, RevisionableInterface $entity) : void;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.