function ModerationHandler::createInstance

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/src/Entity/Handler/ModerationHandler.php \Drupal\content_moderation\Entity\Handler\ModerationHandler::createInstance()
  2. 8.9.x core/modules/content_moderation/src/Entity/Handler/ModerationHandler.php \Drupal\content_moderation\Entity\Handler\ModerationHandler::createInstance()
  3. 10 core/modules/content_moderation/src/Entity/Handler/ModerationHandler.php \Drupal\content_moderation\Entity\Handler\ModerationHandler::createInstance()

Overrides EntityHandlerInterface::createInstance

1 method overrides ModerationHandler::createInstance()
NodeModerationHandler::createInstance in core/modules/content_moderation/src/Entity/Handler/NodeModerationHandler.php
Instantiates a new instance of this entity handler.

File

core/modules/content_moderation/src/Entity/Handler/ModerationHandler.php, line 27

Class

ModerationHandler
Common customizations for most/all entities.

Namespace

Drupal\content_moderation\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.