
| 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/DefaultWorkspaceHandler.php |
<?php
namespace Drupal\workspaces\Entity\Handler;
use Drupal\Core\Entity\EntityHandlerInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Common customizations for most entity types.
*
* @internal
*/
class DefaultWorkspaceHandler implements WorkspaceHandlerInterface, EntityHandlerInterface {
/**
* {@inheritdoc}
*/
public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
return new static();
}
/**
* {@inheritdoc}
*/
public function isEntitySupported(EntityInterface $entity): bool {
return TRUE;
}
}