You are here

public function EntityTypeInfo::__construct in Drupal 8

Same name in this branch
  1. 8 core/modules/content_moderation/src/EntityTypeInfo.php \Drupal\content_moderation\EntityTypeInfo::__construct()
  2. 8 core/modules/workspaces/src/EntityTypeInfo.php \Drupal\workspaces\EntityTypeInfo::__construct()
Same name and namespace in other branches
  1. 9 core/modules/content_moderation/src/EntityTypeInfo.php \Drupal\content_moderation\EntityTypeInfo::__construct()

EntityTypeInfo constructor.

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service. for form alters.

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

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info: Bundle information service.

\Drupal\Core\Session\AccountInterface $current_user: Current user.

File

core/modules/content_moderation/src/EntityTypeInfo.php, line 99

Class

EntityTypeInfo
Manipulates entity type information.

Namespace

Drupal\content_moderation

Code

public function __construct(TranslationInterface $translation, ModerationInformationInterface $moderation_information, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $bundle_info, AccountInterface $current_user, StateTransitionValidationInterface $validator) {
  $this->stringTranslation = $translation;
  $this->moderationInfo = $moderation_information;
  $this->entityTypeManager = $entity_type_manager;
  $this->bundleInfo = $bundle_info;
  $this->currentUser = $current_user;
  $this->validator = $validator;
}