function DefaultWorkspaceHandler::createInstance

Same name and namespace in other branches
  1. 10 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.