function NodeModerationHandler::createInstance
Same name in other branches
- 8.9.x core/modules/content_moderation/src/Entity/Handler/NodeModerationHandler.php \Drupal\content_moderation\Entity\Handler\NodeModerationHandler::createInstance()
- 10 core/modules/content_moderation/src/Entity/Handler/NodeModerationHandler.php \Drupal\content_moderation\Entity\Handler\NodeModerationHandler::createInstance()
- 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\HandlerCode
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.