ModerationInformation::__construct

public ModerationInformation::__construct(EntityTypeManagerInterface $entity_type_manager)

Creates a new ModerationInformation instance.

Parameters

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

\Drupal\Core\Session\AccountInterface $current_user: The current user.

File

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

Class

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

Namespace

Drupal\content_moderation

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}
doc_Drupal
2016-10-29 09:28:34
Comments
Leave a Comment

Please login to continue.