class DefaultWorkspaceHandler

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

Common customizations for most entity types.

@internal

Hierarchy

  • class \Drupal\workspaces\Entity\Handler\DefaultWorkspaceHandler implements \Drupal\workspaces\Entity\Handler\WorkspaceHandlerInterface, \Drupal\Core\Entity\EntityHandlerInterface

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


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