function IgnoredWorkspaceHandler::createInstance

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

Overrides EntityHandlerInterface::createInstance

File

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

Class

IgnoredWorkspaceHandler
Defines a handler for entity types that are ignored by workspaces.

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.