class DefaultWorkspaceHandler

Same name in other branches
  1. 11.x core/modules/workspaces/src/Entity/Handler/DefaultWorkspaceHandler.php \Drupal\workspaces\Entity\Handler\DefaultWorkspaceHandler

Common customizations for most entity types.

@internal

Hierarchy

Expanded class hierarchy of DefaultWorkspaceHandler

2 files declare their use of DefaultWorkspaceHandler
EntityTestRevPubWorkspaceHandler.php in core/modules/workspaces/tests/modules/workspaces_test/src/EntityTestRevPubWorkspaceHandler.php
EntityTypeInfo.php in core/modules/workspaces/src/EntityTypeInfo.php

File

core/modules/workspaces/src/Entity/Handler/DefaultWorkspaceHandler.php, line 15

Namespace

Drupal\workspaces\Entity\Handler
View source
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;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
DefaultWorkspaceHandler::createInstance public static function Instantiates a new instance of this entity handler. Overrides EntityHandlerInterface::createInstance
DefaultWorkspaceHandler::isEntitySupported public function Determines if an entity should be tracked in a workspace. Overrides WorkspaceHandlerInterface::isEntitySupported 2

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