public function SocialPostHelper::__construct in Open Social 10.1.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_post/src/Service/SocialPostHelper.php \Drupal\social_post\Service\SocialPostHelper::__construct()
- 10.0.x modules/social_features/social_post/src/Service/SocialPostHelper.php \Drupal\social_post\Service\SocialPostHelper::__construct()
- 10.2.x modules/social_features/social_post/src/Service/SocialPostHelper.php \Drupal\social_post\Service\SocialPostHelper::__construct()
SocialPostHelper constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Session\AccountProxyInterface $current_user: The current active user.
File
- modules/
social_features/ social_post/ src/ Service/ SocialPostHelper.php, line 37
Class
- SocialPostHelper
- Class SocialPostHelper.
Namespace
Drupal\social_post\ServiceCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountProxyInterface $current_user) {
$this->entityTypeManager = $entity_type_manager;
$this->currentUser = $current_user;
}