
| Current Path : /var/www/html/strat/web/core/modules/workspaces/src/Entity/Handler/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/strat/web/core/modules/workspaces/src/Entity/Handler/WorkspaceHandlerInterface.php |
<?php
namespace Drupal\workspaces\Entity\Handler;
use Drupal\Core\Entity\EntityInterface;
/**
* Defines workspace operations that need to vary by entity type.
*
* @internal
*/
interface WorkspaceHandlerInterface {
/**
* 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.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity we may be tracking.
*
* @return bool
* TRUE if this entity should be tracked in a workspace, FALSE otherwise.
*/
public function isEntitySupported(EntityInterface $entity): bool;
}