
| 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/BlockContentWorkspaceHandler.php |
<?php
namespace Drupal\workspaces\Entity\Handler;
use Drupal\Core\Entity\EntityInterface;
/**
* Provides a custom workspace handler for block_content entities.
*
* @internal
*/
class BlockContentWorkspaceHandler extends DefaultWorkspaceHandler {
/**
* {@inheritdoc}
*/
public function isEntitySupported(EntityInterface $entity): bool {
// Only reusable blocks can be tracked individually. Non-reusable or inline
// blocks are tracked as part of the entity they are a composite of.
/** @var \Drupal\block_content\BlockContentInterface $entity */
return $entity->isReusable();
}
}