You are here

public function ModerationInformation::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/src/ModerationInformation.php \Drupal\content_moderation\ModerationInformation::__construct()

Creates a new ModerationInformation instance.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info: The bundle information service.

File

core/modules/content_moderation/src/ModerationInformation.php, line 43

Class

ModerationInformation
General service for moderation-related questions about Entity API.

Namespace

Drupal\content_moderation

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $bundle_info) {
  $this->entityTypeManager = $entity_type_manager;
  $this->bundleInfo = $bundle_info;
}