function WorkspaceHandlerInterface::isEntitySupported

Same name and namespace in other branches
  1. 10 core/modules/workspaces/src/Entity/Handler/WorkspaceHandlerInterface.php \Drupal\workspaces\Entity\Handler\WorkspaceHandlerInterface::isEntitySupported()

Determines if an entity should be tracked in a workspace.

At the general level, workspace support is determined for the entire entity type. If an entity type is supported, there may be further decisions each entity type can make to evaluate if a given entity is appropriate to be tracked in a workspace.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity we may be tracking.

Return value

bool TRUE if this entity should be tracked in a workspace, FALSE otherwise.

2 methods override WorkspaceHandlerInterface::isEntitySupported()
DefaultWorkspaceHandler::isEntitySupported in core/modules/workspaces/src/Entity/Handler/DefaultWorkspaceHandler.php
Determines if an entity should be tracked in a workspace.
IgnoredWorkspaceHandler::isEntitySupported in core/modules/workspaces/src/Entity/Handler/IgnoredWorkspaceHandler.php
Determines if an entity should be tracked in a workspace.

File

core/modules/workspaces/src/Entity/Handler/WorkspaceHandlerInterface.php, line 28

Class

WorkspaceHandlerInterface
Defines workspace operations that need to vary by entity type.

Namespace

Drupal\workspaces\Entity\Handler

Code

public function isEntitySupported(EntityInterface $entity) : bool;

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