function DefaultWorkspaceHandler::createInstance

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

Overrides EntityHandlerInterface::createInstance

File

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

Class

DefaultWorkspaceHandler
Common customizations for most entity types.

Namespace

Drupal\workspaces\Entity\Handler

Code

public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
    return new static();
}

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