Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

DefaultWorkspaceHandler.php

Namespace

Drupal\workspaces\Entity\Handler

File

core/modules/workspaces/src/Entity/Handler/DefaultWorkspaceHandler.php

View source
<?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;
    }

}

Classes

Title Deprecated Summary
DefaultWorkspaceHandler Common customizations for most entity types.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal