EntityTypeInfo::__construct

public EntityTypeInfo::__construct(TranslationInterface $translation, ModerationInformationInterface $moderation_information, EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user)

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.

File

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

Class

EntityTypeInfo
Manipulates entity type information.

Namespace

Drupal\content_moderation

Code

public function __construct(TranslationInterface $translation, ModerationInformationInterface $moderation_information, EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user) {
  $this->stringTranslation = $translation;
  $this->moderationInfo = $moderation_information;
  $this->entityTypeManager = $entity_type_manager;
  $this->currentUser = $current_user;
}
doc_Drupal
2016-10-29 09:08:18
Comments
Leave a Comment

Please login to continue.