function IgnoredWorkspaceHandler::createInstance

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