You are here

public function SocialPostHelper::__construct in Open Social 10.0.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_post/src/Service/SocialPostHelper.php \Drupal\social_post\Service\SocialPostHelper::__construct()
  2. 10.1.x modules/social_features/social_post/src/Service/SocialPostHelper.php \Drupal\social_post\Service\SocialPostHelper::__construct()
  3. 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\Service

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountProxyInterface $current_user) {
  $this->entityTypeManager = $entity_type_manager;
  $this->currentUser = $current_user;
}