function NodeModerationHandler::createInstance

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

Overrides ModerationHandler::createInstance

File

core/modules/content_moderation/src/Entity/Handler/NodeModerationHandler.php, line 37

Class

NodeModerationHandler
Customizations for node entities.

Namespace

Drupal\content_moderation\Entity\Handler

Code

public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
    return new static($container->get('content_moderation.moderation_information'));
}

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