public function ModerationInformation::__construct in Workbench Moderation 8.2
Same name and namespace in other branches
- 8 src/ModerationInformation.php \Drupal\workbench_moderation\ModerationInformation::__construct()
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
- src/
ModerationInformation.php, line 46
Class
- ModerationInformation
- General service for moderation-related questions about Entity API.
Namespace
Drupal\workbench_moderationCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user) {
$this->entityTypeManager = $entity_type_manager;
$this->currentUser = $current_user;
}