You are here

public function NodeModerationHandler::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/src/Entity/Handler/NodeModerationHandler.php \Drupal\content_moderation\Entity\Handler\NodeModerationHandler::__construct()
  2. 10 core/modules/content_moderation/src/Entity/Handler/NodeModerationHandler.php \Drupal\content_moderation\Entity\Handler\NodeModerationHandler::__construct()

NodeModerationHandler constructor.

Parameters

\Drupal\content_moderation\ModerationInformationInterface $moderation_info: The moderation information service.

File

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

Class

NodeModerationHandler
Customizations for node entities.

Namespace

Drupal\content_moderation\Entity\Handler

Code

public function __construct(ModerationInformationInterface $moderation_info) {
  $this->moderationInfo = $moderation_info;
}